summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2007-09-03 23:39:03 +0000
committerIan Lynagh <igloo@earth.li>2007-09-03 23:39:03 +0000
commitad94d40948668032189ad22a0ad741ac1f645f50 (patch)
tree34212fac32f276c0095f35b39019602c964cbdcf /utils
parent45202530612593a0ba7a6c559a38dc1ff26670a4 (diff)
downloadhaskell-ad94d40948668032189ad22a0ad741ac1f645f50.tar.gz
Use OPTIONS rather than OPTIONS_GHC for pragmas
Older GHCs can't parse OPTIONS_GHC. This also changes the URL referenced for the -w options from WorkingConventions#Warnings to CodingStyle#Warnings for the compiler modules.
Diffstat (limited to 'utils')
-rw-r--r--utils/genapply/GenApply.hs4
-rw-r--r--utils/genprimopcode/Parser.y4
-rw-r--r--utils/hpc/HpcParser.y4
3 files changed, 6 insertions, 6 deletions
diff --git a/utils/genapply/GenApply.hs b/utils/genapply/GenApply.hs
index fe792a1163..de6fcbcd09 100644
--- a/utils/genapply/GenApply.hs
+++ b/utils/genapply/GenApply.hs
@@ -1,9 +1,9 @@
{-# OPTIONS -cpp -fglasgow-exts #-}
-{-# OPTIONS_GHC -w #-}
+{-# OPTIONS -w #-}
-- The above warning 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/WorkingConventions#Warnings
+-- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings
-- for details
module Main(main) where
diff --git a/utils/genprimopcode/Parser.y b/utils/genprimopcode/Parser.y
index 07f1a84863..c189840937 100644
--- a/utils/genprimopcode/Parser.y
+++ b/utils/genprimopcode/Parser.y
@@ -1,10 +1,10 @@
{
-{-# OPTIONS_GHC -w #-}
+{-# OPTIONS -w #-}
-- The above warning 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/WorkingConventions#Warnings
+-- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings
-- for details
module Parser (parse) where
diff --git a/utils/hpc/HpcParser.y b/utils/hpc/HpcParser.y
index c18e053c15..bfdf9a862f 100644
--- a/utils/hpc/HpcParser.y
+++ b/utils/hpc/HpcParser.y
@@ -1,9 +1,9 @@
{
-{-# OPTIONS_GHC -w #-}
+{-# OPTIONS -w #-}
-- The above warning 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/WorkingConventions#Warnings
+-- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings
-- for details
module HpcParser where