package edn
All checked builds passInstall
dune-project
Dependency
Authors
Maintainers
Sources
sha256=7bf2f24eed0e1d7be00d218dcf27c1de53fed276eaf86bb5ea510df12732cdc0
sha512=cef755b969e817d43944be53560803b64b379dc2af1ee39ed0a1c83f79bcce8e664ccc0911c7075d9352ee17a4b2a39211d16da724859dff21702b426bb34730
Description
This library implements EDN parser and generator for OCaml.
Added to opam-repository:
README
edn — Parsing OCaml library for EDN format
v0.2.0
This library implements EDN parser and generator for OCaml.
Homepage: https://github.com/prepor/ocaml-edn Contact: Andrew Rudenko <ceo@prepor.ru>
Installation
edn can be installed with opam:
opam install ednIf you don't use opam consult the opam file for build instructions.
Usage
Edn.from_string "{:a #foo/bar [1 2 3]}";;
- : Edn.t = `Assoc [(`Keyword (None, "a"), `Tag (Some "foo", "bar", `Vector [`Int 1; `Int 2; `Int 3]))]PPX generator
There is cconv encoder/decoder in edn.cconv package. You can use it with cconv.ppx to generate encoders/decoders from/to your types.
type book = { title : string; quantity : int} [@@deriving cconv]
type library = { books : book list } [@@deriving cconv];;
Edn_cconv.of_string_exn decode_library "{:books [{:title \"The Catcher in the Rye\" :quantity 10}]}";;
- : library = {books = [{title = "The Catcher in the Rye"; quantity = 10}]}Documentation
The documentation and API reference is automatically generated by ocamldoc from the interfaces. It can be consulted online and there is a generated version in the doc directory of the distribution.
Dev Dependencies (1)
-
ounit2
with-test
Optional Dependencies (1)
Used by
None
Conflicts
None
Build status
Results of building edn 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.2.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