Commit 8bf9fcc6 authored by Ian Lynagh's avatar Ian Lynagh

Document -fwarn-lazy-unlifted-bindings

parent 64385754
...@@ -844,7 +844,8 @@ ghc -c Foo.hs</screen> ...@@ -844,7 +844,8 @@ ghc -c Foo.hs</screen>
<option>-fwarn-deprecated-flags</option>, <option>-fwarn-deprecated-flags</option>,
<option>-fwarn-duplicate-exports</option>, <option>-fwarn-duplicate-exports</option>,
<option>-fwarn-missing-fields</option>, <option>-fwarn-missing-fields</option>,
<option>-fwarn-missing-methods</option>, and <option>-fwarn-missing-methods</option>,
<option>-fwarn-lazy-unlifted-bindings</option>, and
<option>-fwarn-dodgy-foreign-imports</option>. The following <option>-fwarn-dodgy-foreign-imports</option>. The following
flags are flags are
simple ways to select standard &ldquo;packages&rdquo; of warnings: simple ways to select standard &ldquo;packages&rdquo; of warnings:
...@@ -999,6 +1000,20 @@ foreign import "&amp;f" f :: FunPtr t ...@@ -999,6 +1000,20 @@ foreign import "&amp;f" f :: FunPtr t
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry>
<term><option>-fwarn-lazy-unlifted-bindings</option>:</term>
<listitem>
<indexterm><primary><option>-fwarn-lazy-unlifted-bindings</option></primary>
</indexterm>
<para>Causes a warning to be emitted when an unlifted type
is bound in a way that looks lazy, e.g.
<literal>where (I# x) = ...</literal>. Use
<literal>where !(I# x) = ...</literal> instead. This will be an
error, rather than a warning, in GHC 6.14.
</para>
</listitem>
</varlistentry>
<varlistentry> <varlistentry>
<term><option>-fwarn-duplicate-exports</option>:</term> <term><option>-fwarn-duplicate-exports</option>:</term>
<listitem> <listitem>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment