2.0.0
Breaking Changes:
- Upgrade for Elm 0.18
- Removed
maybeNull
in favor ofJson.Decode.nullable
- Removed
lazy
in favor ofJson.Decode.lazy
- Renamed
apply
toandMap
and reversed arguments toDecoder a -> Decoder (a -> b) -> Decoder b
to make it work nicely with(|>)
Additions:
fromResult : Result String a -> Decoder a
- convert aResult
to aDecoder
, helpful inandThen
callbacks following the removal ofJson.Decode.customDecoder
Json.Encode.Extra.maybe : (a -> Value) -> Maybe a -> Value
- encode aMaybe a
given an encoder fora
. Thanks to @hendore for this addition.
Other Stuff:
- Code style conforms to elm-format