Closed yaitskov closed 1 year ago
Type of decoder function used in prismaticCodec return Maybe, so reporting details about syntax error is not possible.
You may as well create a codec without the "prismatic" helper at that point, Codec.codec' is (Json -> Either JsonDecodeError a) -> (a -> Json) -> JsonCodec a when used for a JsonCodec.
Codec.codec'
(Json -> Either JsonDecodeError a) -> (a -> Json) -> JsonCodec a
JsonCodec
Type of decoder function used in prismaticCodec return Maybe, so reporting details about syntax error is not possible.