first commit

This commit is contained in:
zapashcanon 2024-01-19 15:07:04 +01:00
commit a2d6a08aa6
Signed by untrusted user who does not match committer: zapashcanon
GPG Key ID: 8981C3C62D1D28F1
14 changed files with 158 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
_build

43
.ocamlformat Normal file
View File

@ -0,0 +1,43 @@
version=0.26.1
assignment-operator=end-line
break-cases=fit
break-fun-decl=wrap
break-fun-sig=wrap
break-infix=wrap
break-infix-before-func=false
break-separators=before
break-sequences=true
cases-exp-indent=2
cases-matching-exp-indent=normal
doc-comments=before
doc-comments-padding=2
doc-comments-tag-only=default
dock-collection-brackets=false
exp-grouping=preserve
field-space=loose
if-then-else=compact
indicate-multiline-delimiters=space
indicate-nested-or-patterns=unsafe-no
infix-precedence=indent
leading-nested-match-parens=false
let-and=sparse
let-binding-spacing=compact
let-module=compact
margin=80
max-indent=2
module-item-spacing=sparse
ocaml-version=4.14.0
ocp-indent-compat=false
parens-ite=false
parens-tuple=always
parse-docstrings=true
sequence-blank-line=preserve-one
sequence-style=terminator
single-case=compact
space-around-arrays=true
space-around-lists=true
space-around-records=true
space-around-variants=true
type-decl=sparse
wrap-comments=false
wrap-fun-args=true

1
CHANGES.md Normal file
View File

@ -0,0 +1 @@
## unreleased

8
LICENSE.md Normal file
View File

@ -0,0 +1,8 @@
The ISC License (ISC)
=====================
Copyright © 2024, Léo Andrès <contact@ndrs.fr>
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

40
README.md Normal file
View File

@ -0,0 +1,40 @@
# kropotkine
[kropotkine] is an [OCaml] executable/library to TODO.
## Installation
`kropotkine` can be installed with [opam]:
```sh
opam install kropotkine
```
If you don't have `opam`, you can install it following the [how to install opam] guide.
If you can't or don't want to use `opam`, consult the [opam file] for build instructions.
## Quickstart
```ocaml
let () = Format.printf "TODO@."
```
For more, have a look at the [example] folder, at the [documentation] or at the [test suite].
## About
- [LICENSE]
- [CHANGELOG]
[CHANGELOG]: ./CHANGES.md
[example]: ./example
[LICENSE]: ./LICENSE.md
[opam file]: ./kropotkine.opam
[test suite]: ./test
[documentation]: https://doc.zapashcanon.fr/kropotkine
[how to install opam]: https://opam.ocaml.org/doc/Install.html
[OCaml]: https://ocaml.org
[opam]: https://opam.ocaml.org/
[kropotkine]: https://git.zapashcanon.fr/zapashcanon/kropotkine

3
doc/dune Normal file
View File

@ -0,0 +1,3 @@
(documentation
(package kropotkine)
(mld_files index))

17
doc/index.mld Normal file
View File

@ -0,0 +1,17 @@
{0 kropotkine}
{{:https://git.zapashcanon.fr/zapashcanon/kropotkine} kropotkine} is an {{:https://ocaml.org} OCaml} library/executable to TODO.
{1:api API}
{!modules:
Kropotkine
}
{1:private_api Private API}
You shouldn't have to use any of these modules, they're used internally only.
{!modules:
TODO
}

33
dune-project Normal file
View File

@ -0,0 +1,33 @@
(lang dune 3.0)
(implicit_transitive_deps false)
(name kropotkine)
(license ISC)
(authors "Léo Andrès <contact@ndrs.fr>")
(maintainers "Léo Andrès <contact@ndrs.fr>")
(source
(uri git+https://git.zapashcanon.fr/zapashcanon/kropotkine.git))
(homepage https://git.zapashcanon.fr/zapashcanon/kropotkine)
(bug_reports https://git.zapashcanon.fr/zapashcanon/kropotkine/issues)
(documentation https://doc.zapashcanon.fr/kropotkine)
(generate_opam_files true)
(package
(name kropotkine)
(synopsis "OCaml library/executable to TODO")
(description
"kropotkine is an OCaml library/executable to TODO.")
(tags
(kropotkine TODO TODO TODO TODO))
(depends
(ocaml
(>= 4.08))))

3
example/dune Normal file
View File

@ -0,0 +1,3 @@
(executable
(name main)
(modules main))

1
example/main.ml Normal file
View File

@ -0,0 +1 @@
let () = Format.printf "TODO@."

3
src/dune Normal file
View File

@ -0,0 +1,3 @@
(executable
(name kropotkine)
(modules kropotkine))

1
src/kropotkine.ml Normal file
View File

@ -0,0 +1 @@
let () = Format.printf "Hello!@."

3
test/dune Normal file
View File

@ -0,0 +1,3 @@
(test
(name test)
(modules test))

1
test/test.ml Normal file
View File

@ -0,0 +1 @@
let () = assert true (* TODO *)