package spotlib
Not available on OCaml 5.5Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=7fff71bfc23ad664bf0b53fd19c50300
sha512=a3f5e6088ee31d0c69043054470b4b08b9e26b74b55affdfdf1cb62b8fe09f960568491cc5095ed6cf95fd83cde3d7485c1a3966c5c8342f7a9861525946ffc7
Description
Spotlib is a small library package used for several softwares by Jun Furuse. It is almost a poor replication of Jane Street Core, but it is small.
Added to opam-repository:
README
Spotlib
Yet another extension of OCaml standard library.
Module name convension
X.Open: Recommended to open it whenXis usedX.Pervasives: They are included inSpotlib.Spot. OpeningSpotlib.Spotmake them available.
Function name convension
Functions of stdlib are kept as they are. Only the exception is the conversions of non tail recursions to tail recursions.
Tail recursion
Non tail recursive functions in stdlib may be replaced by tail recursive equivalents. In that case, the original functions xxx in stdlib should be accessible by xxx_ntr.
Exception
Some functions xxx do not raise exceptions even for strange inputs. xxx_exn may throw exceptions for the strange inputs.
For example, List.take 10 [] = [] following the behaviour of Haskell's take. take_exn throws Invalid_argument "List.take" instead.
Option
Many stdlib functions xxx throw exceptions Not_found when searching fails. xxx_opt returns None instead.
Default
Many stdlib functions may raise exceptions for some inputs. xxx_def never throws exceptions for such inputs. Ex. String.sub and String.sub_default: String.sub "hello" 3 5 throws an exception, but String.sub_default "hello" 3 5 = "lo".
Function type convension
- No labels for basic functions. Proposes to use flip, flip2... instead.
Dev Dependencies
None
Optional Dependencies (1)
Used by (3)
- ppx_meta_conv
-
treeprint
>= "2.2.0" - unmagic
Conflicts
None
Build status
Results of building spotlib with each compiler on check.ci.ocaml.org, run of against opam-repository 78c202b. 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 |
|---|---|---|---|---|---|
| 4.3.0 (this version) | n/a | good | n/a | n/a | n/a |
| 4.2.0 | good | good | n/a | n/a | n/a |
- 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