this repo has no description
1opam-version: "2.0"
2synopsis: "Elm-inspired decoders for Ocaml"
3description: """
4A combinator library for "decoding" JSON-like values into your own Ocaml types, inspired by Elm's `Json.Decode` and `Json.Encode`.
5
6> Eh?
7
8An Ocaml program having a JSON (or YAML) data source usually goes something like this:
9
101. Get your data from somewhere. Now you have a `string`.
112. *Parse* the `string` as JSON (or YAML). Now you have a `Yojson.Basic.json`, or maybe an `Ezjsonm.value`, or perhaps a `Ocyaml.yaml`.
123. *Decode* the JSON value to an Ocaml type that's actually useful for your program's domain.
13
14This library helps with step 3.
15"""
16maintainer: "Matt Bray <matt@aestheticintegration.com>"
17authors: "Matt Bray <matt@aestheticintegration.com>"
18license: "ISC"
19homepage: "https://github.com/mattjbray/ocaml-decoders"
20doc: "https://mattjbray.github.io/ocaml-decoders/decoders-yojson"
21bug-reports: "https://github.com/mattjbray/ocaml-decoders/issues"
22depends: [
23 "ocaml"
24 "dune"
25 "ounit" {with-test}
26 "decoders" {< "0.3.0"}
27 "yojson" {< "2.0.0"}
28]
29build: [
30 ["dune" "build" "-p" name "-j" jobs]
31 ["dune" "runtest" "-p" name "-j" jobs] {with-test}
32]
33dev-repo: "git+ssh://git@github.com/mattjbray/ocaml-decoders.git"
34url {
35 src:
36 "https://github.com/mattjbray/ocaml-decoders/releases/download/v0.2.0/decoders-v0.2.0.tbz"
37 checksum: [
38 "sha256=62b3e2706dafe526c832bce2ea871f01d50b0464baf9bb90db3a819ebdf17e65"
39 "sha512=8c564b7bf01b906a384128f588c323425db2af3476ff83f1e4ed1773786a2f444949b9e6b81f5ba1e405cc5dd0a782ed10cdea55005be289660c5bc81e6481d5"
40 ]
41}