diff options
author | Ian Lynagh <igloo@earth.li> | 2009-11-25 17:18:15 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2009-11-25 17:18:15 +0000 |
commit | de865a1c13352b239bcbad64a3b70e66a9bcba86 (patch) | |
tree | f3eacde6d8ff3348e5c1084b4d9c5c4394217539 /compiler | |
parent | 16c7844d29b7b90e6cf432ec646f70d466ca9cc9 (diff) | |
download | haskell-de865a1c13352b239bcbad64a3b70e66a9bcba86.tar.gz |
Tweak the warning suppression flags used in Lexer
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/parser/Lexer.x | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/compiler/parser/Lexer.x b/compiler/parser/Lexer.x index 85d4d12dca..fbc4821f16 100644 --- a/compiler/parser/Lexer.x +++ b/compiler/parser/Lexer.x @@ -31,15 +31,15 @@ -- qualified varids. { -{-# OPTIONS -Wwarn -w #-} --- The above -Wwarn supression flag is a temporary kludge. --- While working on this module you are encouraged to remove it and fix --- any warnings in the module. See --- http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#Warnings --- for details --- --- Note that Alex itself generates code with with some unused bindings and --- without type signatures, so removing the flag might not be possible. +-- XXX The above flags turn off warnings in the generated code: +{-# OPTIONS_GHC -fno-warn-unused-matches #-} +{-# OPTIONS_GHC -fno-warn-unused-binds #-} +{-# OPTIONS_GHC -fno-warn-unused-imports #-} +{-# OPTIONS_GHC -fno-warn-missing-signatures #-} +-- But alex still generates some code that causes the "lazy unlifted bindings" +-- warning, and old compilers don't know about it so we can't easily turn +-- it off, so for now we use the sledge hammer: +{-# OPTIONS_GHC -w #-} {-# OPTIONS_GHC -funbox-strict-fields #-} |