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