diff --git a/td6/exo2.ml b/td6/exo2.ml deleted file mode 100644 index e891e00..0000000 --- a/td6/exo2.ml +++ /dev/null @@ -1,7 +0,0 @@ -let radix l = - let r = ref 0 in - let running = ref true in - while !running do - running := false; - List.fold_left - done diff --git a/td6/ocaml/dune-project b/td6/ocaml/dune-project new file mode 100644 index 0000000..4dddbec --- /dev/null +++ b/td6/ocaml/dune-project @@ -0,0 +1,26 @@ +(lang dune 3.20) + +(name td6) + +(generate_opam_files true) + +(source + (github username/reponame)) + +(authors "Author Name ") + +(maintainers "Maintainer Name ") + +(license LICENSE) + +(documentation https://url/to/documentation) + +(package + (name td6) + (synopsis "A short synopsis") + (description "A longer description") + (depends ocaml) + (tags + ("add topics" "to describe" your project))) + +; See the complete stanza docs at https://dune.readthedocs.io/en/stable/reference/dune-project/index.html diff --git a/td6/ocaml/lib/dune b/td6/ocaml/lib/dune new file mode 100644 index 0000000..40894a0 --- /dev/null +++ b/td6/ocaml/lib/dune @@ -0,0 +1,3 @@ +(library + (name lib) + (public_name td6)) diff --git a/td6/ocaml/lib/lib.ml b/td6/ocaml/lib/lib.ml new file mode 100644 index 0000000..94097a4 --- /dev/null +++ b/td6/ocaml/lib/lib.ml @@ -0,0 +1,3 @@ +let radix l = + let r = ref 0 in + let running = ref true in diff --git a/td6/ocaml/td6.opam b/td6/ocaml/td6.opam new file mode 100644 index 0000000..a43bbcb --- /dev/null +++ b/td6/ocaml/td6.opam @@ -0,0 +1,32 @@ +# 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: ["add 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: [ + "dune" {>= "3.20"} + "ocaml" + "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" +x-maintenance-intent: ["(latest)"] diff --git a/td6/ocaml/test/dune b/td6/ocaml/test/dune new file mode 100644 index 0000000..d2d6441 --- /dev/null +++ b/td6/ocaml/test/dune @@ -0,0 +1,4 @@ +(executable + (name test) + (public_name test) + (libraries lib)) diff --git a/td6/ocaml/test/test.ml b/td6/ocaml/test/test.ml new file mode 100644 index 0000000..b5df65f --- /dev/null +++ b/td6/ocaml/test/test.ml @@ -0,0 +1 @@ +open Lib;;