Skip to content

Conversation

@avsm
Copy link
Member

@avsm avsm commented Jul 28, 2020

Let's leave the interface rev from find -> find_exn to a future major revision. This just adds a find_opt in the style of the OCaml stdlib (e.g. List.assoc_opt). Also turns an assert failure into a Parse failure.

avsm added 2 commits July 28, 2020 18:27
if the input to `from_string` is not a valid JSON array or object

fixes mirage#31
@avsm avsm merged commit 51d7f35 into mirage:master Jul 28, 2020
avsm added a commit to avsm/opam-repository that referenced this pull request Jul 28, 2020
CHANGES:

* Add `find_opt` to provide an exception-less version of `find` (mirage/ezjsonm#39 @avsm)
* Raise `Parse_error` instead of assert failure if the input
  to `from_string` is not a valid JSON array or object (mirage/ezjsonm#39 @avsm).
* Upgrade build rules to dune 2.0 (mirage/ezjsonm#38 @avsm)
* Depend on Sexplib0 instead of Sexplib since we only need
  the type definition. This reduces the dependency cone of
  Ezjsonm (and skips Base). (mirage/ezjsonm#38 @avsm)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant