diff options
author | Ian Lynagh <igloo@earth.li> | 2009-07-19 20:01:24 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2009-07-19 20:01:24 +0000 |
commit | 76c6727d14fe738f4460882739dd462686b008b9 (patch) | |
tree | c63cf489676c4b631dd5bf33efd180130ad56411 /docs | |
parent | 5c8d5090cfbb3b239c6ce17a27bcf65637296dd9 (diff) | |
download | haskell-76c6727d14fe738f4460882739dd462686b008b9.tar.gz |
Add a -fwarn-dodgy-exports flag; fixes #1911
This is used to control warnings that were previously unconditional.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/users_guide/using.xml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/users_guide/using.xml b/docs/users_guide/using.xml index f6686392c2..06b9ccc315 100644 --- a/docs/users_guide/using.xml +++ b/docs/users_guide/using.xml @@ -860,6 +860,7 @@ ghc -c Foo.hs</screen> <indexterm><primary>-W option</primary></indexterm> <para>Provides the standard warnings plus <option>-fwarn-incomplete-patterns</option>, + <option>-fwarn-dodgy-exports</option>, <option>-fwarn-dodgy-imports</option>, <option>-fwarn-unused-matches</option>, <option>-fwarn-unused-imports</option>, and @@ -991,6 +992,20 @@ foreign import "&f" f :: FunPtr t </varlistentry> <varlistentry> + <term><option>-fwarn-dodgy-exports</option>:</term> + <listitem> + <indexterm><primary><option>-fwarn-dodgy-exports</option></primary> + </indexterm> + <para>Causes a warning to be emitted when a datatype + <literal>T</literal> is exported + with all constructors, i.e. <literal>T(..)</literal>, but is it + just a type synonym.</para> + <para>Also causes a warning to be emitted when a module is + re-exported, but that module exports nothing.</para> + </listitem> + </varlistentry> + + <varlistentry> <term><option>-fwarn-dodgy-imports</option>:</term> <listitem> <indexterm><primary><option>-fwarn-dodgy-imports</option></primary> |