td6 ocaml

This commit is contained in:
Arkitu 2026-01-13 14:33:30 +01:00
parent 80d86762a2
commit 2366416df4
7 changed files with 69 additions and 7 deletions

View File

@ -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

26
td6/ocaml/dune-project Normal file
View File

@ -0,0 +1,26 @@
(lang dune 3.20)
(name td6)
(generate_opam_files true)
(source
(github username/reponame))
(authors "Author Name <author@example.com>")
(maintainers "Maintainer Name <maintainer@example.com>")
(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

3
td6/ocaml/lib/dune Normal file
View File

@ -0,0 +1,3 @@
(library
(name lib)
(public_name td6))

3
td6/ocaml/lib/lib.ml Normal file
View File

@ -0,0 +1,3 @@
let radix l =
let r = ref 0 in
let running = ref true in

32
td6/ocaml/td6.opam Normal file
View File

@ -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 <maintainer@example.com>"]
authors: ["Author Name <author@example.com>"]
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)"]

4
td6/ocaml/test/dune Normal file
View File

@ -0,0 +1,4 @@
(executable
(name test)
(public_name test)
(libraries lib))

1
td6/ocaml/test/test.ml Normal file
View File

@ -0,0 +1 @@
open Lib;;