projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
1d02661
)
Fix Trac #1909: type of map in docs
author
simonpj@microsoft.com
<unknown>
Tue, 20 Nov 2007 16:01:52 +0000
(16:01 +0000)
committer
simonpj@microsoft.com
<unknown>
Tue, 20 Nov 2007 16:01:52 +0000
(16:01 +0000)
docs/users_guide/ghci.xml
patch
|
blob
|
history
diff --git
a/docs/users_guide/ghci.xml
b/docs/users_guide/ghci.xml
index
69fcc36
..
98496d7
100644
(file)
--- a/
docs/users_guide/ghci.xml
+++ b/
docs/users_guide/ghci.xml
@@
-1437,7
+1437,7
@@
as = 'b' : 'c' : (_t1::[Char])
<programlisting>
import Prelude hiding (map)
-map :: (a->b) -> a -> b
+map :: (a->b) -> [a] -> [b]
map f [] = []
map f (x:xs) = f x : map f xs
</programlisting>