summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2007-08-05 15:33:41 +0000
committerIan Lynagh <igloo@earth.li>2007-08-05 15:33:41 +0000
commitd4050431de1adddedb240e497f77f89301f77070 (patch)
tree2c934a59a89e8908c168ccb4055d5301118d0fc6 /docs
parent4d401b9d0514c93efc296ac99f0e89e4514996b7 (diff)
downloadhaskell-d4050431de1adddedb240e497f77f89301f77070.tar.gz
Add a --supported-languages flag
Print the list of strings that are accepted in a LANGUAGE pragma, or as a -XFoo flag. (No can be prepended to any of the strings).
Diffstat (limited to 'docs')
-rw-r--r--docs/users_guide/flags.xml6
-rw-r--r--docs/users_guide/using.xml12
2 files changed, 18 insertions, 0 deletions
diff --git a/docs/users_guide/flags.xml b/docs/users_guide/flags.xml
index eaa622596f..b0dbfb1f94 100644
--- a/docs/users_guide/flags.xml
+++ b/docs/users_guide/flags.xml
@@ -60,6 +60,12 @@
<entry>-</entry>
</row>
<row>
+ <entry><option>&ndash;&ndash;supported-languages</option></entry>
+ <entry>display the supported language extensions</entry>
+ <entry>mode</entry>
+ <entry>-</entry>
+ </row>
+ <row>
<entry><option>&ndash;&ndash;version</option></entry>
<entry>display GHC version</entry>
<entry>mode</entry>
diff --git a/docs/users_guide/using.xml b/docs/users_guide/using.xml
index c24a20c3c9..7a1391ce85 100644
--- a/docs/users_guide/using.xml
+++ b/docs/users_guide/using.xml
@@ -343,6 +343,18 @@ module X where
<varlistentry>
<term>
<cmdsynopsis>
+ <command>ghc --supported-languages</command>
+ </cmdsynopsis>
+ <indexterm><primary><option>&ndash;&ndash;supported-languages</option></primary></indexterm>
+ </term>
+ <listitem>
+ <para>Print the supported language extensions.</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term>
+ <cmdsynopsis>
<command>ghc --version</command>
<command>ghc -V</command>
</cmdsynopsis>