package traits
All checked builds passInstall
dune-project
Dependency
Authors
Maintainers
Sources
sha256=c51504fe40fc7458c5aa36d1e6b2551b01cdd45389d1d67868c63dc602c440ba
sha512=0878aa46a403824eb480a65d8d37cd61a541170503fcb9d04db1f31b54ef7eba236231fde559ce21d2e0757d08b2700757c2f60486f5461c19aa3fa3001bd5ec
Description
Common traits for generic functionality
Added to opam-repository:
README
Traits
This package provides simple building blocks for generic functionality in OCaml using modules and functors.
Motivation
This package was originally developed to avoid coupling of operation (such as equality or ordering comparison) with the type information. Consider this:
Int.equal 1 2The fact that we call [Int.equal] carries both the operation ([equal]) and the type ([int]). The original purpose has been stated to de-couple these into separate things:
Eq.eq (module Int) 1 2It is, however, planned to extend this package to provide more common abstractions.
Dev Dependencies (3)
-
odoc
with-doc -
ppx_inline_alcotest
with-test & >= "1.0.0" -
alcotest
with-test & >= "1.5.0"
Optional Dependencies
None
Used by
None
Conflicts
None
Build status
Results of building traits with each compiler on check.ci.ocaml.org, run of against opam-repository 8a77e58. 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 |
|---|---|---|---|---|---|
| 0.1.0 (this version) | good | 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