We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
elaborateFailure
getFieldOptional'
1 parent c4feb91 commit f0e206fCopy full SHA for f0e206f
src/Data/Argonaut/Decode/Combinators.purs
@@ -65,7 +65,7 @@ getFieldOptional' o s =
65
decode json =
66
if isNull json
67
then pure Nothing
68
- else Just <$> decodeJson json
+ else Just <$> (elaborateFailure s <<< decodeJson) json
69
70
infix 7 getFieldOptional' as .:?
71
0 commit comments