[commit: packages/containers] master: typo in the doc for Data.Map.Base (72448b3)

git at git.haskell.org git at git.haskell.org
Fri Dec 18 22:12:04 UTC 2015


Repository : ssh://git@git.haskell.org/containers

On branch  : master
Link       : http://git.haskell.org/packages/containers.git/commitdiff/72448b3272fd758ea3613f984f192c6a99ec7982

>---------------------------------------------------------------

commit 72448b3272fd758ea3613f984f192c6a99ec7982
Author: G. Allais <guillaume.allais at ens-lyon.org>
Date:   Thu Feb 19 21:29:53 2015 +0000

    typo in the doc for Data.Map.Base


>---------------------------------------------------------------

72448b3272fd758ea3613f984f192c6a99ec7982
 Data/Map/Base.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Data/Map/Base.hs b/Data/Map/Base.hs
index 965a258..fccd6e0 100644
--- a/Data/Map/Base.hs
+++ b/Data/Map/Base.hs
@@ -1689,7 +1689,7 @@ mapWithKey f (Bin sx kx x l r) = Bin sx kx (f kx x) (mapWithKey f l) (mapWithKey
 #endif
 
 -- | /O(n)/.
--- @'traverseWithKey' f s == 'fromList' <$> 'traverse' (\(k, v) -> (,) k <$> f k v) ('toList' m)@
+-- @'traverseWithKey' f m == 'fromList' <$> 'traverse' (\(k, v) -> (,) k <$> f k v) ('toList' m)@
 -- That is, behaves exactly like a regular 'traverse' except that the traversing
 -- function also has access to the key associated with a value.
 --



More information about the ghc-commits mailing list