From 73a6f0a6bd210ba9bef906764303827775b30408 Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sat, 6 Jul 2024 13:16:53 +1000 Subject: [PATCH] Init project --- .gitignore | 32 ++++++++++++++++++++++++++++++++ README.md | 1 + bin/dune | 4 ++++ bin/main.ml | 4 ++++ dune-project | 26 ++++++++++++++++++++++++++ flan.opam | 31 +++++++++++++++++++++++++++++++ lib/dune | 2 ++ lib/example.ml | 1 + test/dune | 2 ++ test/test_flon.ml | 0 10 files changed, 103 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 bin/dune create mode 100644 bin/main.ml create mode 100644 dune-project create mode 100644 flan.opam create mode 100644 lib/dune create mode 100644 lib/example.ml create mode 100644 test/dune create mode 100644 test/test_flon.ml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..29eec0b --- /dev/null +++ b/.gitignore @@ -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 \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..74ab06f --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# Flan \ No newline at end of file diff --git a/bin/dune b/bin/dune new file mode 100644 index 0000000..52f5287 --- /dev/null +++ b/bin/dune @@ -0,0 +1,4 @@ +(executable + (public_name flan) + (name main) + (libraries flan)) diff --git a/bin/main.ml b/bin/main.ml new file mode 100644 index 0000000..99d7c38 --- /dev/null +++ b/bin/main.ml @@ -0,0 +1,4 @@ +open Flan + +let () = + Example.print_greeting "mate" diff --git a/dune-project b/dune-project new file mode 100644 index 0000000..9cb37dd --- /dev/null +++ b/dune-project @@ -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 diff --git a/flan.opam b/flan.opam new file mode 100644 index 0000000..d500377 --- /dev/null +++ b/flan.opam @@ -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" diff --git a/lib/dune b/lib/dune new file mode 100644 index 0000000..ad39be8 --- /dev/null +++ b/lib/dune @@ -0,0 +1,2 @@ +(library + (name flan)) diff --git a/lib/example.ml b/lib/example.ml new file mode 100644 index 0000000..ce7c639 --- /dev/null +++ b/lib/example.ml @@ -0,0 +1 @@ +let print_greeting name = print_endline ("G'day, " ^ name) \ No newline at end of file diff --git a/test/dune b/test/dune new file mode 100644 index 0000000..fc92eeb --- /dev/null +++ b/test/dune @@ -0,0 +1,2 @@ +(test + (name test_flan)) diff --git a/test/test_flon.ml b/test/test_flon.ml new file mode 100644 index 0000000..e69de29