projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0656c72
)
Improve documentation for -fwarn-incomplete-patterns
author
simonpj@microsoft.com
<unknown>
Tue, 16 Nov 2010 17:15:27 +0000
(17:15 +0000)
committer
simonpj@microsoft.com
<unknown>
Tue, 16 Nov 2010 17:15:27 +0000
(17:15 +0000)
docs/users_guide/using.xml
patch
|
blob
|
history
diff --git
a/docs/users_guide/using.xml
b/docs/users_guide/using.xml
index
22c8861
..
a4c673c
100644
(file)
--- a/
docs/users_guide/using.xml
+++ b/
docs/users_guide/using.xml
@@
-1221,14
+1221,15
@@
foreign import "&f" f :: FunPtr t
<indexterm><primary>incomplete patterns, warning</primary></indexterm>
<indexterm><primary>patterns, incomplete</primary></indexterm>
<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
enabled.</para>
<programlisting>
g [] = 2
non-empty lists, so the compiler will emit a warning about
this when <option>-fwarn-incomplete-patterns</option> is
enabled.</para>
<programlisting>
g [] = 2
+h = \[] -> 2
</programlisting>
<para>This option isn't enabled by default because it can be
</programlisting>
<para>This option isn't enabled by default because it can be