From ad94d40948668032189ad22a0ad741ac1f645f50 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Mon, 3 Sep 2007 23:39:03 +0000 Subject: 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. --- compiler/iface/BinIface.hs | 4 ++-- compiler/iface/BuildTyCl.lhs | 4 ++-- compiler/iface/IfaceEnv.lhs | 4 ++-- compiler/iface/IfaceSyn.lhs | 4 ++-- compiler/iface/IfaceType.lhs | 4 ++-- compiler/iface/LoadIface.lhs | 4 ++-- compiler/iface/MkIface.lhs | 4 ++-- compiler/iface/TcIface.lhs | 4 ++-- 8 files changed, 16 insertions(+), 16 deletions(-) (limited to 'compiler/iface') diff --git a/compiler/iface/BinIface.hs b/compiler/iface/BinIface.hs index 3443e6ab00..e891db4998 100644 --- a/compiler/iface/BinIface.hs +++ b/compiler/iface/BinIface.hs @@ -3,11 +3,11 @@ -- -- Binary interface file support. -{-# 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 BinIface ( writeBinIface, readBinIface, v_IgnoreHiWay ) where diff --git a/compiler/iface/BuildTyCl.lhs b/compiler/iface/BuildTyCl.lhs index e951c633d8..242772fecb 100644 --- a/compiler/iface/BuildTyCl.lhs +++ b/compiler/iface/BuildTyCl.lhs @@ -4,11 +4,11 @@ % \begin{code} -{-# 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 BuildTyCl ( diff --git a/compiler/iface/IfaceEnv.lhs b/compiler/iface/IfaceEnv.lhs index bf8d09b688..3176c6add1 100644 --- a/compiler/iface/IfaceEnv.lhs +++ b/compiler/iface/IfaceEnv.lhs @@ -1,11 +1,11 @@ (c) The University of Glasgow 2002-2006 \begin{code} -{-# 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 IfaceEnv ( diff --git a/compiler/iface/IfaceSyn.lhs b/compiler/iface/IfaceSyn.lhs index 20cc5c6c08..e95eab07b6 100644 --- a/compiler/iface/IfaceSyn.lhs +++ b/compiler/iface/IfaceSyn.lhs @@ -4,11 +4,11 @@ % \begin{code} -{-# 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 IfaceSyn ( diff --git a/compiler/iface/IfaceType.lhs b/compiler/iface/IfaceType.lhs index 7248ec6192..4482d2bfd2 100644 --- a/compiler/iface/IfaceType.lhs +++ b/compiler/iface/IfaceType.lhs @@ -6,11 +6,11 @@ This module defines interface types and binders \begin{code} -{-# 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 IfaceType ( diff --git a/compiler/iface/LoadIface.lhs b/compiler/iface/LoadIface.lhs index ba27087e69..37c2e49020 100644 --- a/compiler/iface/LoadIface.lhs +++ b/compiler/iface/LoadIface.lhs @@ -6,11 +6,11 @@ Loading interface files \begin{code} -{-# 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 LoadIface ( diff --git a/compiler/iface/MkIface.lhs b/compiler/iface/MkIface.lhs index 05e75c78f8..69d862f164 100644 --- a/compiler/iface/MkIface.lhs +++ b/compiler/iface/MkIface.lhs @@ -4,11 +4,11 @@ % \begin{code} -{-# 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 MkIface ( diff --git a/compiler/iface/TcIface.lhs b/compiler/iface/TcIface.lhs index a3b987751e..c0655307fe 100644 --- a/compiler/iface/TcIface.lhs +++ b/compiler/iface/TcIface.lhs @@ -6,11 +6,11 @@ Type checking of type signatures in interface files \begin{code} -{-# 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 TcIface ( -- cgit v1.2.1