-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: simplify user-facing deserializer type
This change hides away the state of the context object passed around between deserialization calls, which makes the `Serde.De.t` value take a single type parameter for the type of value it is deserializing into. That means that `(Serde_json.De.state, User.t) Serde.De.t` becomes `User.t Serde.De.t` – this frees the user to swap out the format module at runtime, and should make type errors simpler as well.
- Loading branch information
Showing
1 changed file
with
93 additions
and
128 deletions.
There are no files selected for viewing
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