From 8bf9fcc6529cac5fd4699909757b8e094118e5e4 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Fri, 5 Jun 2009 12:23:48 +0000 Subject: [PATCH] Document -fwarn-lazy-unlifted-bindings --- docs/users_guide/using.xml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/docs/users_guide/using.xml b/docs/users_guide/using.xml index 65ca0ac..478a6bc 100644 --- a/docs/users_guide/using.xml +++ b/docs/users_guide/using.xml @@ -844,7 +844,8 @@ ghc -c Foo.hs , , , - , and + , + , and . The following flags are simple ways to select standard “packages” of warnings: @@ -1000,6 +1001,20 @@ foreign import "&f" f :: FunPtr t + : + + + + Causes a warning to be emitted when an unlifted type + is bound in a way that looks lazy, e.g. + where (I# x) = .... Use + where !(I# x) = ... instead. This will be an + error, rather than a warning, in GHC 6.14. + + + + + : -- 1.7.10.4