Skip to content

Use typed json#28

Open
billzdon wants to merge 2 commits intobill/placeholder-simplificationfrom
bill/typed-json-config
Open

Use typed json#28
billzdon wants to merge 2 commits intobill/placeholder-simplificationfrom
bill/typed-json-config

Conversation

@billzdon
Copy link
Contributor

Add a method to get typed json with a new parsing library

)
const evaluation = type.decode(result)

if (evaluation._tag === "Left") {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol, either monad detected :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: you can handle right case first as it's shorter

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.

2 participants