Versionbump: Changes due to JSON type change.
This commit is contained in:
parent
656c1de2cc
commit
130c703e0a
@ -44,7 +44,7 @@ o .:?~ key = o .: key <|> maybe empty parseJSON go
|
||||
|
||||
|
||||
-- Like (.:?) but maps Just null to Nothing, ie. Nothing instead of Just ""
|
||||
(.:?!) :: (Canonical (Maybe a), FromJSON a) => Object -> Text -> Parser (Maybe a)
|
||||
(.:?!) :: (Canonical (Maybe a), FromJSON a) => Object -> Data.Aeson.Types.Key -> Parser (Maybe a)
|
||||
(.:?!) o k = canonical <$> (o .:? k)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user