package nel
All checked builds passInstall
dune-project
Dependency
Authors
Maintainers
Sources
sha256=b730154eb04e68143caa076239cb23e9441616a7984756b8e0c096d2ac19d60b
sha512=6a26051cb9859dd4b7ca3a4d77d323761ff5bca2de1eb771c72a072e53775edfcaef9e202f7172cc9734de6bb0ca8936a75c3ba5ca542470bdba6ccbea85eafb
Description
A very simple implementation of a non-empty list
Added to opam-repository:
README
Nel
Until non-empty lists are included in the standard library, this rather naive implementation should do the trick. Currently the goal of the API is not to be complete but to follow our current usages.
Why not using ocaml-non-empty-list? Although the implementation is more than reasonable, it relies on Base, which we feel is too much to expect for small projects.
Goal
Non-empty lists are often used to characterize the result of a validation, where the error case, in which the list is empty, does not make sense. The purpose of this portable library is therefore to serve this purpose.
Dev Dependencies (7)
-
odoc
with-doc -
ocaml-lsp-server
with-dev-setup -
merlin
with-dev-setup -
ocp-indent
with-dev-setup -
ocamlformat
with-dev-setup -
utop
with-dev-setup -
alcotest
with-test & >= "1.9.1"
Optional Dependencies
None
Used by (1)
Conflicts
None
Build status
Results of building nel with each compiler on check.ci.ocaml.org, run of against opam-repository 8d8d144. All results for this package.
Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.
| Version | OCaml 4.11 | OCaml 4.14 | OCaml 5.2 | OCaml 5.4 | OCaml 5.5 |
|---|---|---|---|---|---|
| 1.0.1 (this version) | n/a | good | good | good | good |
- good Package successfully built
- partial One of the dependencies failed to build
- bad Package failed to build
- n/a Package is not available in this environment
- internal Internal failure