Skip to content

Added getFieldOptional' to Decode.Combinators #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 29, 2017

Conversation

Vlix
Copy link
Owner

@Vlix Vlix commented Aug 29, 2017

The regular getFieldOptional doesn't return Nothing when the value of the field is null.
getFieldOptional' does give Nothing when the field is null.
The operator aliasses are changed to mimic the Haskell Data.Aeson libraries implementation.
(If, for legacy reasons, the alias for the old getFieldOptional shouldn't change, then switch (.??) for (.?!) and vice-versa.)

The regular getFieldOptional doesn't return Nothing when the value of the field is null.
getFieldOptional' does give Nothing when the field is null.
The operator aliasses are changed to mimic the Haskell Data.Aeson libraries implementation.
(If, for legacy reasons, the alias for the old getFieldOptional shouldn't change, then switch (.??) for (.?!) and vice-versa.)
@Vlix Vlix merged commit 30eedac into master Aug 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant