git.iko.soy/monoidal-containers
on master help sign in
Fix docs for lookupM
commitfaa42d50e22538fb48d45ddc5caedfda6cb7f9f7 authorKonstantine Rybnikov <k-bx@k-bx.com> dateFri 23 Jan 2015, 20:49 (12 years ago) parent1043965
1 file changed+1−1
src/Data/HashMap/Monoidal.hs+1−1
src/Data/HashMap/Monoidal.hs+1−1
@@ -136,7 +136,7 @@ lookup k = M.lookup k . unpack
136136{-# INLINE lookup #-}
137137
138138-- | /O(log n)/ Return the value to which the specified key is mapped,
139−-- or 'Nothing' if this map contains no mapping for the key.
139+-- or mempty if this map contains no mapping for the key.
140140lookupM :: (Eq k, Hashable k, Monoid v) => k -> MonoidalHashMap k v -> v
141141lookupM k = fromMaybe mempty . M.lookup k . unpack
142142{-# INLINE lookupM #-}