From 56aaa78a63ab27c40a6834ed28ff3f32d1ede214 Mon Sep 17 00:00:00 2001 From: "simonpj@microsoft.com" Date: Tue, 16 Nov 2010 17:15:27 +0000 Subject: [PATCH] Improve documentation for -fwarn-incomplete-patterns --- docs/users_guide/using.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 1.7.10.4