projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7383309
)
Fix typo (fst --> head) in docs on implicit parameters
author
simonpj@microsoft.com
<unknown>
Fri, 18 Aug 2006 07:59:37 +0000
(07:59 +0000)
committer
simonpj@microsoft.com
<unknown>
Fri, 18 Aug 2006 07:59:37 +0000
(07:59 +0000)
docs/users_guide/glasgow_exts.xml
patch
|
blob
|
history
diff --git
a/docs/users_guide/glasgow_exts.xml
b/docs/users_guide/glasgow_exts.xml
index
0beed8e
..
96c2ce9
100644
(file)
--- a/
docs/users_guide/glasgow_exts.xml
+++ b/
docs/users_guide/glasgow_exts.xml
@@
-2505,7
+2505,7
@@
function that called it. For example, our <literal>sort</literal> function might
to pick out the least value in a list:
<programlisting>
least :: (?cmp :: a -> a -> Bool) => [a] -> a
- least xs = fst (sort xs)
+ least xs = head (sort xs)
</programlisting>
Without lifting a finger, the <literal>?cmp</literal> parameter is
propagated to become a parameter of <literal>least</literal> as well. With explicit