garyb / purescript-codec-argonaut

Bi-directional JSON codecs for argonaut
MIT License
38 stars 16 forks source link

Add prismatic codec #9

Closed garyb closed 6 years ago

garyb commented 6 years ago

/cc @MonoidMusician not sure if this is still useful for you, but here it is.

MonoidMusician commented 6 years ago

Hey thanks! I sort of got my things implemented ... how about (a -> Either JsonDecodeError b) instead, so we can specify the message (since we aren't using actual prisms)? There are nice algebraic error messages, why not use them ☺️