From: simonpj@microsoft.com Date: Tue, 16 Nov 2010 17:15:27 +0000 (+0000) Subject: Improve documentation for -fwarn-incomplete-patterns X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;ds=sidebyside;h=56aaa78a63ab27c40a6834ed28ff3f32d1ede214;p=ghc-hetmet.git Improve documentation for -fwarn-incomplete-patterns --- diff --git a/docs/users_guide/using.xml b/docs/users_guide/using.xml index 22c8861..a4c673c 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, warning patterns, 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