We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c4feb91 + f0e206f commit 3be823eCopy full SHA for 3be823e
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