Skip to content

Commit 3be823e

Browse files
Merge pull request #52 from LucianU/master
Use `elaborateFailure` in `getFieldOptional'`
2 parents c4feb91 + f0e206f commit 3be823e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Data/Argonaut/Decode/Combinators.purs

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ getFieldOptional' o s =
6565
decode json =
6666
if isNull json
6767
then pure Nothing
68-
else Just <$> decodeJson json
68+
else Just <$> (elaborateFailure s <<< decodeJson) json
6969

7070
infix 7 getFieldOptional' as .:?
7171

0 commit comments

Comments
 (0)