[commit: ghc] master: Improve documentation of comprehensions (413fa95)
git at git.haskell.org
git at git.haskell.org
Fri Sep 11 16:17:28 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/413fa952eff61ada987e965949df8b09aa342b39/ghc
>---------------------------------------------------------------
commit 413fa952eff61ada987e965949df8b09aa342b39
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date: Fri Sep 11 17:02:58 2015 +0100
Improve documentation of comprehensions
Suggestion from Jeremy Gibbons
>---------------------------------------------------------------
413fa952eff61ada987e965949df8b09aa342b39
docs/users_guide/glasgow_exts.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/users_guide/glasgow_exts.xml b/docs/users_guide/glasgow_exts.xml
index dbf67c6..0295b13 100644
--- a/docs/users_guide/glasgow_exts.xml
+++ b/docs/users_guide/glasgow_exts.xml
@@ -1888,7 +1888,7 @@ fmap GHC.Base forall a b. (a->b) -> n a -> n b
mzip Control.Monad.Zip forall a b. m a -> m b -> m (a,b)
</programlisting>
The comprehension should typecheck when its desugaring would typecheck,
-except that (as discussed in <xref linkend=""/>)
+except that (as discussed in <xref linkend="generalised-list-comprehensions"/>)
in the "then f" and "then group using f" clauses,
when the "by b" qualifier is omitted, argument f should have a polymorphic type.
In particular, "then Data.List.sort" and
More information about the ghc-commits
mailing list