Init project

This commit is contained in:
omniscient 2024-07-06 13:16:53 +10:00
commit 73a6f0a6bd
10 changed files with 103 additions and 0 deletions

32
.gitignore vendored Normal file
View File

@ -0,0 +1,32 @@
*.annot
*.cmo
*.cma
*.cmi
*.a
*.o
*.cmx
*.cmxs
*.cmxa
# ocamlbuild working directory
_build/
# ocamlbuild targets
*.byte
*.native
# oasis generated files
setup.data
setup.log
# Merlin configuring file for Vim and Emacs
.merlin
# Dune generated files
*.install
# Local OPAM switch
_opam/
# VSCode settings folder
.vscode

1
README.md Normal file
View File

@ -0,0 +1 @@
# Flan

4
bin/dune Normal file
View File

@ -0,0 +1,4 @@
(executable
(public_name flan)
(name main)
(libraries flan))

4
bin/main.ml Normal file
View File

@ -0,0 +1,4 @@
open Flan
let () =
Example.print_greeting "mate"

26
dune-project Normal file
View File

@ -0,0 +1,26 @@
(lang dune 3.15)
(name flan)
(generate_opam_files true)
(source
(github username/reponame))
(authors "Author Name")
(maintainers "Maintainer Name")
(license LICENSE)
(documentation https://url/to/documentation)
(package
(name flan)
(synopsis "A short synopsis")
(description "A longer description")
(depends ocaml dune)
(tags
(topics "to describe" your project)))
; See the complete stanza docs at https://dune.readthedocs.io/en/stable/dune-files.html#dune-project

31
flan.opam Normal file
View File

@ -0,0 +1,31 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis: "A short synopsis"
description: "A longer description"
maintainer: ["Maintainer Name"]
authors: ["Author Name"]
license: "LICENSE"
tags: ["topics" "to describe" "your" "project"]
homepage: "https://github.com/username/reponame"
doc: "https://url/to/documentation"
bug-reports: "https://github.com/username/reponame/issues"
depends: [
"ocaml"
"dune" {>= "3.15"}
"odoc" {with-doc}
]
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
]
dev-repo: "git+https://github.com/username/reponame.git"

2
lib/dune Normal file
View File

@ -0,0 +1,2 @@
(library
(name flan))

1
lib/example.ml Normal file
View File

@ -0,0 +1 @@
let print_greeting name = print_endline ("G'day, " ^ name)

2
test/dune Normal file
View File

@ -0,0 +1,2 @@
(test
(name test_flan))

0
test/test_flon.ml Normal file
View File