X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=docs%2Fusers_guide%2Fusing.xml;h=a80e8d12769665fa7ab68eddd44f9f8fea2e0a01;hb=1e4f900ade324e2db2f886a11d7cb571ad5f180c;hp=22c886100f276ff6666d228d5502164b525ac7c0;hpb=0656c72a8f4fda30c348bdf40449d105e4ce00ce;p=ghc-hetmet.git
diff --git a/docs/users_guide/using.xml b/docs/users_guide/using.xml
index 22c8861..a80e8d1 100644
--- a/docs/users_guide/using.xml
+++ b/docs/users_guide/using.xml
@@ -1221,14 +1221,15 @@ foreign import "&f" f :: FunPtr t
incomplete patterns, warningpatterns, incomplete
- Similarly for incomplete patterns, the function
- g below will fail when applied to
+ Similarly for incomplete patterns, the functions
+ g and h below will fail when applied to
non-empty lists, so the compiler will emit a warning about
this when is
enabled.
g [] = 2
+h = \[] -> 2
This option isn't enabled by default because it can be
@@ -2209,9 +2210,8 @@ statements or clauses.
.hcr. The Core format is described in An External Representation for the GHC Core Language,
and sample tools
- for manipulating Core files (in Haskell) are in the GHC source distribution
- directory under utils/ext-core.
- Note that the format of .hcr
+ for manipulating Core files (in Haskell) are available in the
+ extcore package on Hackage. Note that the format of .hcr
files is different from the Core output format that GHC generates
for debugging purposes (), though the two formats appear somewhat similar.