Commit 56aaa78a authored by's avatar

Improve documentation for -fwarn-incomplete-patterns

parent 0656c72a
......@@ -1221,14 +1221,15 @@ foreign import "&f" f :: FunPtr t
<indexterm><primary>incomplete patterns, warning</primary></indexterm>
<indexterm><primary>patterns, incomplete</primary></indexterm>
<para>Similarly for incomplete patterns, the function
<function>g</function> below will fail when applied to
<para>Similarly for incomplete patterns, the functions
<function>g</function> and <function>h</function> below will fail when applied to
non-empty lists, so the compiler will emit a warning about
this when <option>-fwarn-incomplete-patterns</option> is
g [] = 2
h = \[] -> 2
<para>This option isn't enabled by default because it can be
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