Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
f1779d13
Commit
f1779d13
authored
Jun 05, 2009
by
simonpj@microsoft.com
Browse files
Mention that generalised list comprehensions are enabled with -XTransformListComp
parent
d49e38db
Changes
2
Hide whitespace changes
Inline
Side-by-side
docs/users_guide/flags.xml
View file @
f1779d13
...
...
@@ -856,7 +856,7 @@
</row>
<row>
<entry><option>
-XTransformListComp
</option></entry>
<entry>
Enable
<link
linkend=
"generalised-list-comprehensions"
>
transform
list comprehensions
</link>
.
</entry>
<entry>
Enable
<link
linkend=
"generalised-list-comprehensions"
>
generalised
list comprehensions
</link>
.
</entry>
<entry>
dynamic
</entry>
<entry><option>
-XNoTransformListComp
</option></entry>
</row>
...
...
docs/users_guide/glasgow_exts.xml
View file @
f1779d13
...
...
@@ -1008,6 +1008,7 @@ This name is not supported by GHC.
paper
<ulink
url=
"http://research.microsoft.com/~simonpj/papers/list-comp"
>
Comprehensive comprehensions: comprehensions with "order by" and "group by"
</ulink>
,
except that the syntax we use differs slightly from the paper.
</para>
<para>
The extension is enabled with the flag
<option>
-XTransformListComp
</option>
.
</para>
<para>
Here is an example:
<programlisting>
employees = [ ("Simon", "MS", 80)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment