on master help sign in
Fix #445: correct .:? haddock
commitfb95475cf8d85e01684053dc98d9c1f4f14e4423 authorOleg Grenrus <oleg.grenrus@iki.fi> dateFri 8 Jul 2016, 13:42 (10 years ago) parent2d2b699
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