-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lower-level Decoder.t #40
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mattjbray
force-pushed
the
extract-decoder
branch
2 times, most recently
from
June 28, 2021 13:19
12c1785
to
570833f
Compare
mattjbray
force-pushed
the
extract-decoder
branch
from
November 14, 2021 19:05
570833f
to
878cb17
Compare
mattjbray
force-pushed
the
extract-decoder
branch
from
June 15, 2022 09:26
a0c0803
to
40e53de
Compare
mattjbray
force-pushed
the
extract-decoder
branch
from
June 15, 2022 09:36
d9308de
to
9fe0d09
Compare
mattjbray
added a commit
to mattjbray/opam-repository
that referenced
this pull request
Aug 8, 2022
…sgpck, 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).
mattjbray
added a commit
to mattjbray/opam-repository
that referenced
this pull request
Aug 9, 2022
…sgpck, 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).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Refactors decoders around a lower-level
Decoder.t
type:This new
Decoder
module could be useful outside of the JSON-like decoders this library already provides; anywhere you need to convert from a representation'i
to a representation'o
, where there is a possibility of error'i Error.t
.An example is decoding expressions returned by the BigQuery API in
ocaml-gcloud
:The existing JSON-like decoders become, for example:
TODO:
decoder.mli
error.mli