on master help sign in
Merge pull request #446 from phadej/issue-445

Fix #445: correct .:? haddock

commit987941b65091ad74a993a4e19d982741a48ecf09 authorAdam Bergmark <adam@bergmark.nl> dateFri 8 Jul 2016, 22:38 (10 years ago) parent923694ffb95475
1 file changed+3−3
Data/Aeson/Types/FromJSON.hs+3−3
Data/Aeson/Types/FromJSON.hs+3−3
@@ -660,9 +660,9 @@ obj .: key = case H.lookup key obj of
660660 Just v -> parseJSON v <?> Key key
661661{-# INLINE (.:) #-}
662662
663−-- | Retrieve the value associated with the given key of an 'Object'.
664−-- The result is 'Nothing' if the key is not present, or 'empty' if
665−-- the value cannot be converted to the desired type.
663+-- | Retrieve the value associated with the given key of an 'Object'. The
664+-- result is 'Nothing' if the key is not present or value is 'Null', or 'empty'
665+-- if the value cannot be converted to the desired type.
666666--
667667-- This accessor is most useful if the key and value can be absent
668668-- from an object without affecting its validity. If the key and