Skip to content

Commit c0f58c3

Browse files
committed
[new release] decoders, decoders-yojson, decoders-sexplib, decoders-msgpck, decoders-jsonm, decoders-jsonaf, decoders-ezxmlm, decoders-ezjsonm, decoders-cbor and decoders-bencode (1.0.0)
CHANGES: * Extract and expose `Decoder.t`, useful for "decoding" things outside of the JSON family (mattjbray/ocaml-decoders#40, @mattjbray). * Add `Decoders.Xml.S` to `decoders`, create `decoders-ezxmlm`, and add `Decoders_bs_xml` to `bs-decoders` (mattjbray/ocaml-decoders#49, @mattjbray). * BREAKING: namespace `bs-decoders` modules under `Decoders`. To upgrade, replace `Decoders_bs` with `Decoders.Bs_json` (mattjbray/ocaml-decoders#49, @mattjbray). * Add `decoders-jsonaf` (mattjbray/ocaml-decoders#50, @dvmitrv).
1 parent f85e121 commit c0f58c3

File tree

10 files changed

+431
-0
lines changed
  • packages
    • decoders-bencode/decoders-bencode.1.0.0
    • decoders-cbor/decoders-cbor.1.0.0
    • decoders-ezjsonm/decoders-ezjsonm.1.0.0
    • decoders-ezxmlm/decoders-ezxmlm.1.0.0
    • decoders-jsonaf/decoders-jsonaf.1.0.0
    • decoders-jsonm/decoders-jsonm.1.0.0
    • decoders-msgpck/decoders-msgpck.1.0.0
    • decoders-sexplib/decoders-sexplib.1.0.0
    • decoders-yojson/decoders-yojson.1.0.0
    • decoders/decoders.1.0.0

10 files changed

+431
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
opam-version: "2.0"
2+
synopsis: "Bencode backend for decoders"
3+
description:
4+
"A combinator library for \"decoding\" JSON-like values into your own Ocaml types, inspired by Elm's `Json.Decode` and `Json.Encode`."
5+
maintainer: ["Matt Bray <[email protected]>"]
6+
authors: ["Simon Cruanes <[email protected]>"]
7+
license: "ISC"
8+
homepage: "https://github.com/mattjbray/ocaml-decoders"
9+
doc: "https://mattjbray.github.io/ocaml-decoders/"
10+
bug-reports: "https://github.com/mattjbray/ocaml-decoders/issues"
11+
depends: [
12+
"dune" {>= "3.1"}
13+
"ocaml" {>= "4.03.0"}
14+
"decoders" {= version}
15+
"bencode" {>= "2.0"}
16+
"odoc" {with-doc}
17+
"containers" {with-test & >= "0.16"}
18+
"ounit2" {with-test}
19+
]
20+
build: [
21+
["dune" "subst"] {dev}
22+
[
23+
"dune"
24+
"build"
25+
"-p"
26+
name
27+
"-j"
28+
jobs
29+
"@install"
30+
"@runtest" {with-test}
31+
"@doc" {with-doc}
32+
]
33+
]
34+
dev-repo: "git+https://github.com/mattjbray/ocaml-decoders.git"
35+
url {
36+
src:
37+
"https://github.com/mattjbray/ocaml-decoders/releases/download/v1.0.0/decoders-1.0.0.tbz"
38+
checksum: [
39+
"sha256=47fe79c4102d0f710eff3ceaef313100d9df3c7945834d3cf38a39742a573597"
40+
"sha512=6fe4e9f99d865fb24c8b1da08ba485282fc8eaf6ed48cedbe8109cae863ad441a95b2643b4ea217a6b012f149682ca69af436ed26a3d646903738fce5651a229"
41+
]
42+
}
43+
x-commit-hash: "0e0afb7e988aa746a1d6d7f1e8ee8ba2e875e382"
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
opam-version: "2.0"
2+
synopsis: "CBOR backend for decoders"
3+
description:
4+
"A combinator library for \"decoding\" JSON-like values into your own Ocaml types, inspired by Elm's `Json.Decode` and `Json.Encode`."
5+
maintainer: ["Matt Bray <[email protected]>"]
6+
authors: ["Matt Bray <[email protected]>"]
7+
license: "ISC"
8+
homepage: "https://github.com/mattjbray/ocaml-decoders"
9+
doc: "https://mattjbray.github.io/ocaml-decoders/"
10+
bug-reports: "https://github.com/mattjbray/ocaml-decoders/issues"
11+
depends: [
12+
"dune" {>= "3.1"}
13+
"ocaml" {>= "4.03.0"}
14+
"decoders" {= version}
15+
"cbor"
16+
"odoc" {with-doc}
17+
"containers" {with-test & >= "0.16"}
18+
"ounit2" {with-test}
19+
]
20+
build: [
21+
["dune" "subst"] {dev}
22+
[
23+
"dune"
24+
"build"
25+
"-p"
26+
name
27+
"-j"
28+
jobs
29+
"@install"
30+
"@runtest" {with-test}
31+
"@doc" {with-doc}
32+
]
33+
]
34+
dev-repo: "git+https://github.com/mattjbray/ocaml-decoders.git"
35+
url {
36+
src:
37+
"https://github.com/mattjbray/ocaml-decoders/releases/download/v1.0.0/decoders-1.0.0.tbz"
38+
checksum: [
39+
"sha256=47fe79c4102d0f710eff3ceaef313100d9df3c7945834d3cf38a39742a573597"
40+
"sha512=6fe4e9f99d865fb24c8b1da08ba485282fc8eaf6ed48cedbe8109cae863ad441a95b2643b4ea217a6b012f149682ca69af436ed26a3d646903738fce5651a229"
41+
]
42+
}
43+
x-commit-hash: "0e0afb7e988aa746a1d6d7f1e8ee8ba2e875e382"
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
opam-version: "2.0"
2+
synopsis: "Ezjsonm backend for decoders"
3+
description:
4+
"A combinator library for \"decoding\" JSON-like values into your own Ocaml types, inspired by Elm's `Json.Decode` and `Json.Encode`."
5+
maintainer: ["Matt Bray <[email protected]>"]
6+
authors: ["Matt Bray <[email protected]>"]
7+
license: "ISC"
8+
homepage: "https://github.com/mattjbray/ocaml-decoders"
9+
doc: "https://mattjbray.github.io/ocaml-decoders/"
10+
bug-reports: "https://github.com/mattjbray/ocaml-decoders/issues"
11+
depends: [
12+
"dune" {>= "3.1"}
13+
"ocaml" {>= "4.03.0"}
14+
"decoders" {= version}
15+
"ezjsonm" {>= "0.4.0"}
16+
"odoc" {with-doc}
17+
"containers" {with-test & >= "0.16"}
18+
"ounit2" {with-test}
19+
]
20+
build: [
21+
["dune" "subst"] {dev}
22+
[
23+
"dune"
24+
"build"
25+
"-p"
26+
name
27+
"-j"
28+
jobs
29+
"@install"
30+
"@runtest" {with-test}
31+
"@doc" {with-doc}
32+
]
33+
]
34+
dev-repo: "git+https://github.com/mattjbray/ocaml-decoders.git"
35+
url {
36+
src:
37+
"https://github.com/mattjbray/ocaml-decoders/releases/download/v1.0.0/decoders-1.0.0.tbz"
38+
checksum: [
39+
"sha256=47fe79c4102d0f710eff3ceaef313100d9df3c7945834d3cf38a39742a573597"
40+
"sha512=6fe4e9f99d865fb24c8b1da08ba485282fc8eaf6ed48cedbe8109cae863ad441a95b2643b4ea217a6b012f149682ca69af436ed26a3d646903738fce5651a229"
41+
]
42+
}
43+
x-commit-hash: "0e0afb7e988aa746a1d6d7f1e8ee8ba2e875e382"
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
opam-version: "2.0"
2+
synopsis: "Ezxmlm backend for decoders"
3+
description:
4+
"A combinator library for \"decoding\" JSON-like values into your own Ocaml types, inspired by Elm's `Json.Decode` and `Json.Encode`."
5+
maintainer: ["Matt Bray <[email protected]>"]
6+
authors: ["Matt Bray <[email protected]>"]
7+
license: "ISC"
8+
homepage: "https://github.com/mattjbray/ocaml-decoders"
9+
doc: "https://mattjbray.github.io/ocaml-decoders/"
10+
bug-reports: "https://github.com/mattjbray/ocaml-decoders/issues"
11+
depends: [
12+
"dune" {>= "3.1"}
13+
"ocaml" {>= "4.03.0"}
14+
"decoders" {= version}
15+
"ezxmlm" {>= "1.1.0"}
16+
"containers" {with-test & >= "0.16"}
17+
"odoc" {with-doc}
18+
]
19+
build: [
20+
["dune" "subst"] {dev}
21+
[
22+
"dune"
23+
"build"
24+
"-p"
25+
name
26+
"-j"
27+
jobs
28+
"@install"
29+
"@runtest" {with-test}
30+
"@doc" {with-doc}
31+
]
32+
]
33+
dev-repo: "git+https://github.com/mattjbray/ocaml-decoders.git"
34+
url {
35+
src:
36+
"https://github.com/mattjbray/ocaml-decoders/releases/download/v1.0.0/decoders-1.0.0.tbz"
37+
checksum: [
38+
"sha256=47fe79c4102d0f710eff3ceaef313100d9df3c7945834d3cf38a39742a573597"
39+
"sha512=6fe4e9f99d865fb24c8b1da08ba485282fc8eaf6ed48cedbe8109cae863ad441a95b2643b4ea217a6b012f149682ca69af436ed26a3d646903738fce5651a229"
40+
]
41+
}
42+
x-commit-hash: "0e0afb7e988aa746a1d6d7f1e8ee8ba2e875e382"
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
opam-version: "2.0"
2+
synopsis: "Jsonaf backend for decoders"
3+
description:
4+
"A combinator library for \"decoding\" JSON-like values into your own Ocaml types, inspired by Elm's `Json.Decode` and `Json.Encode`."
5+
maintainer: ["Matt Bray <[email protected]>"]
6+
authors: [
7+
"Vlad Dumitru <[email protected]>" "Matt Bray <[email protected]>"
8+
]
9+
license: "ISC"
10+
homepage: "https://github.com/mattjbray/ocaml-decoders"
11+
doc: "https://mattjbray.github.io/ocaml-decoders/"
12+
bug-reports: "https://github.com/mattjbray/ocaml-decoders/issues"
13+
depends: [
14+
"dune" {>= "3.1"}
15+
"ocaml" {>= "4.10.0"}
16+
"decoders" {= version}
17+
"jsonaf" {>= "0.15.0"}
18+
"odoc" {with-doc}
19+
"ounit2" {with-test}
20+
]
21+
build: [
22+
["dune" "subst"] {dev}
23+
[
24+
"dune"
25+
"build"
26+
"-p"
27+
name
28+
"-j"
29+
jobs
30+
"@install"
31+
"@runtest" {with-test}
32+
"@doc" {with-doc}
33+
]
34+
]
35+
dev-repo: "git+https://github.com/mattjbray/ocaml-decoders.git"
36+
url {
37+
src:
38+
"https://github.com/mattjbray/ocaml-decoders/releases/download/v1.0.0/decoders-1.0.0.tbz"
39+
checksum: [
40+
"sha256=47fe79c4102d0f710eff3ceaef313100d9df3c7945834d3cf38a39742a573597"
41+
"sha512=6fe4e9f99d865fb24c8b1da08ba485282fc8eaf6ed48cedbe8109cae863ad441a95b2643b4ea217a6b012f149682ca69af436ed26a3d646903738fce5651a229"
42+
]
43+
}
44+
x-commit-hash: "0e0afb7e988aa746a1d6d7f1e8ee8ba2e875e382"
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
opam-version: "2.0"
2+
synopsis: "Jsonm backend for decoders"
3+
description:
4+
"A combinator library for \"decoding\" JSON-like values into your own Ocaml types, inspired by Elm's `Json.Decode` and `Json.Encode`."
5+
maintainer: ["Matt Bray <[email protected]>"]
6+
authors: ["Matt Bray <[email protected]>"]
7+
license: "ISC"
8+
homepage: "https://github.com/mattjbray/ocaml-decoders"
9+
doc: "https://mattjbray.github.io/ocaml-decoders/"
10+
bug-reports: "https://github.com/mattjbray/ocaml-decoders/issues"
11+
depends: [
12+
"dune" {>= "3.1"}
13+
"ocaml" {>= "4.03.0"}
14+
"decoders" {= version}
15+
"jsonm"
16+
"odoc" {with-doc}
17+
"containers" {with-test & >= "0.16"}
18+
"ounit2" {with-test}
19+
]
20+
build: [
21+
["dune" "subst"] {dev}
22+
[
23+
"dune"
24+
"build"
25+
"-p"
26+
name
27+
"-j"
28+
jobs
29+
"@install"
30+
"@runtest" {with-test}
31+
"@doc" {with-doc}
32+
]
33+
]
34+
dev-repo: "git+https://github.com/mattjbray/ocaml-decoders.git"
35+
url {
36+
src:
37+
"https://github.com/mattjbray/ocaml-decoders/releases/download/v1.0.0/decoders-1.0.0.tbz"
38+
checksum: [
39+
"sha256=47fe79c4102d0f710eff3ceaef313100d9df3c7945834d3cf38a39742a573597"
40+
"sha512=6fe4e9f99d865fb24c8b1da08ba485282fc8eaf6ed48cedbe8109cae863ad441a95b2643b4ea217a6b012f149682ca69af436ed26a3d646903738fce5651a229"
41+
]
42+
}
43+
x-commit-hash: "0e0afb7e988aa746a1d6d7f1e8ee8ba2e875e382"
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
opam-version: "2.0"
2+
synopsis: "Msgpck backend for decoders"
3+
description:
4+
"A combinator library for \"decoding\" JSON-like values into your own Ocaml types, inspired by Elm's `Json.Decode` and `Json.Encode`."
5+
maintainer: ["Matt Bray <[email protected]>"]
6+
authors: [
7+
"Matt Bray <[email protected]>" "Simon Cruanes <[email protected]>"
8+
]
9+
license: "ISC"
10+
homepage: "https://github.com/mattjbray/ocaml-decoders"
11+
doc: "https://mattjbray.github.io/ocaml-decoders/"
12+
bug-reports: "https://github.com/mattjbray/ocaml-decoders/issues"
13+
depends: [
14+
"dune" {>= "3.1"}
15+
"ocaml" {>= "4.03.0"}
16+
"decoders" {= version}
17+
"msgpck" {>= "1.3"}
18+
"ocplib-endian" {>= "0.6"}
19+
"odoc" {with-doc}
20+
"containers" {with-test & >= "0.16"}
21+
"ounit2" {with-test}
22+
]
23+
dev-repo: "git+https://github.com/mattjbray/ocaml-decoders.git"
24+
build: [
25+
["dune" "subst"] {dev}
26+
[
27+
"dune"
28+
"build"
29+
"-p"
30+
name
31+
"-j"
32+
jobs
33+
"@install"
34+
"@runtest" {with-test & ocaml:version >= "4.08"}
35+
"@doc" {with-doc}
36+
]
37+
]
38+
url {
39+
src:
40+
"https://github.com/mattjbray/ocaml-decoders/releases/download/v1.0.0/decoders-1.0.0.tbz"
41+
checksum: [
42+
"sha256=47fe79c4102d0f710eff3ceaef313100d9df3c7945834d3cf38a39742a573597"
43+
"sha512=6fe4e9f99d865fb24c8b1da08ba485282fc8eaf6ed48cedbe8109cae863ad441a95b2643b4ea217a6b012f149682ca69af436ed26a3d646903738fce5651a229"
44+
]
45+
}
46+
x-commit-hash: "0e0afb7e988aa746a1d6d7f1e8ee8ba2e875e382"
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
opam-version: "2.0"
2+
synopsis: "Sexplib backend for decoders"
3+
description:
4+
"A combinator library for \"decoding\" JSON-like values into your own Ocaml types, inspired by Elm's `Json.Decode` and `Json.Encode`."
5+
maintainer: ["Matt Bray <[email protected]>"]
6+
authors: ["Matt Bray <[email protected]>"]
7+
license: "ISC"
8+
homepage: "https://github.com/mattjbray/ocaml-decoders"
9+
doc: "https://mattjbray.github.io/ocaml-decoders/"
10+
bug-reports: "https://github.com/mattjbray/ocaml-decoders/issues"
11+
depends: [
12+
"dune" {>= "3.1"}
13+
"ocaml" {>= "4.03.0"}
14+
"decoders" {= version}
15+
"sexplib0"
16+
"sexplib"
17+
"odoc" {with-doc}
18+
"containers" {with-test & >= "0.16"}
19+
"ounit2" {with-test}
20+
]
21+
build: [
22+
["dune" "subst"] {dev}
23+
[
24+
"dune"
25+
"build"
26+
"-p"
27+
name
28+
"-j"
29+
jobs
30+
"@install"
31+
"@runtest" {with-test}
32+
"@doc" {with-doc}
33+
]
34+
]
35+
dev-repo: "git+https://github.com/mattjbray/ocaml-decoders.git"
36+
url {
37+
src:
38+
"https://github.com/mattjbray/ocaml-decoders/releases/download/v1.0.0/decoders-1.0.0.tbz"
39+
checksum: [
40+
"sha256=47fe79c4102d0f710eff3ceaef313100d9df3c7945834d3cf38a39742a573597"
41+
"sha512=6fe4e9f99d865fb24c8b1da08ba485282fc8eaf6ed48cedbe8109cae863ad441a95b2643b4ea217a6b012f149682ca69af436ed26a3d646903738fce5651a229"
42+
]
43+
}
44+
x-commit-hash: "0e0afb7e988aa746a1d6d7f1e8ee8ba2e875e382"

0 commit comments

Comments
 (0)