From: Ian Lynagh Date: Sat, 11 Sep 2010 19:34:34 +0000 (+0000) Subject: put back the conversion of warn-lazy-unlifted-bindings into an error until 7.2 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=f63ef1a7f3fa3fff1769b2db397437025f3f5586 put back the conversion of warn-lazy-unlifted-bindings into an error until 7.2 I think we'll currently still have too many people with old versions of alex/happy to want to make this an error now. --- diff --git a/compiler/typecheck/TcBinds.lhs b/compiler/typecheck/TcBinds.lhs index 84a25f2..cf0e165 100644 --- a/compiler/typecheck/TcBinds.lhs +++ b/compiler/typecheck/TcBinds.lhs @@ -580,7 +580,7 @@ unliftedMustBeBang :: LHsBindsLR Var Var -> SDoc unliftedMustBeBang mbind = hang (text "Bindings containing unlifted types must use an outermost bang pattern:") 4 (pprLHsBinds mbind) - $$ text "*** This will be an error in GHC 6.14! Fix your code now!" + $$ text "*** This will be an error in GHC 7.2! Fix your code now!" strictBindErr :: String -> Bool -> LHsBindsLR Var Var -> SDoc strictBindErr flavour unlifted mbind diff --git a/docs/users_guide/using.xml b/docs/users_guide/using.xml index cb1fb65..45f6438 100644 --- a/docs/users_guide/using.xml +++ b/docs/users_guide/using.xml @@ -1123,7 +1123,7 @@ foreign import "&f" f :: FunPtr t 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 7.0. + error, rather than a warning, in GHC 7.2.