summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2012-07-15 22:01:51 +0100
committerIan Lynagh <igloo@earth.li>2012-07-15 22:01:51 +0100
commitaf7c648aaaf4bd3af7a58f4e9913ec740f09de58 (patch)
tree6f2d9838508acfbbc45dc731ca528f02aa2841ae
parent68ee44b8f2548a022bcbab25dd586b987a8bb6a5 (diff)
downloadhaskell-af7c648aaaf4bd3af7a58f4e9913ec740f09de58.tar.gz
Move -fno-warn-orphan flag into individual modules
-rw-r--r--compiler/cmm/BlockId.hs1
-rw-r--r--compiler/cmm/OldPprCmm.hs1
-rw-r--r--compiler/cmm/PprCmm.hs1
-rw-r--r--compiler/cmm/PprCmmDecl.hs1
-rw-r--r--compiler/cmm/PprCmmExpr.hs1
-rw-r--r--compiler/coreSyn/PprCore.lhs1
-rw-r--r--compiler/coreSyn/PprExternalCore.lhs1
-rw-r--r--compiler/ghc.cabal.in2
-rw-r--r--compiler/hsSyn/HsSyn.lhs1
-rw-r--r--compiler/iface/BinIface.hs1
-rw-r--r--compiler/iface/LoadIface.lhs1
-rw-r--r--compiler/nativeGen/PPC/Ppr.hs1
-rw-r--r--compiler/nativeGen/RegAlloc/Linear/State.hs1
-rw-r--r--compiler/nativeGen/SPARC/Ppr.hs1
-rw-r--r--compiler/nativeGen/X86/Ppr.hs1
-rw-r--r--compiler/simplCore/FloatOut.lhs1
-rw-r--r--compiler/typecheck/TcEnv.lhs1
-rw-r--r--compiler/typecheck/TcRnMonad.lhs1
-rw-r--r--compiler/typecheck/TcSplice.lhs1
-rw-r--r--compiler/types/Type.lhs1
-rw-r--r--compiler/utils/Fingerprint.hsc1
21 files changed, 21 insertions, 1 deletions
diff --git a/compiler/cmm/BlockId.hs b/compiler/cmm/BlockId.hs
index 95293c850b..8a46aed8f0 100644
--- a/compiler/cmm/BlockId.hs
+++ b/compiler/cmm/BlockId.hs
@@ -1,4 +1,5 @@
{- BlockId module should probably go away completely, being superseded by Label -}
+{-# OPTIONS_GHC -fno-warn-orphans #-}
module BlockId
( BlockId, mkBlockId -- ToDo: BlockId should be abstract, but it isn't yet
, BlockSet, BlockEnv
diff --git a/compiler/cmm/OldPprCmm.hs b/compiler/cmm/OldPprCmm.hs
index 9990fd26a4..9605cb9bdf 100644
--- a/compiler/cmm/OldPprCmm.hs
+++ b/compiler/cmm/OldPprCmm.hs
@@ -32,6 +32,7 @@
-- A useful example pass over Cmm is in nativeGen/MachCodeGen.hs
--
+{-# OPTIONS_GHC -fno-warn-orphans #-}
module OldPprCmm (
pprStmt,
module PprCmmDecl,
diff --git a/compiler/cmm/PprCmm.hs b/compiler/cmm/PprCmm.hs
index 9717eea179..31c1794887 100644
--- a/compiler/cmm/PprCmm.hs
+++ b/compiler/cmm/PprCmm.hs
@@ -30,6 +30,7 @@
--
-- A useful example pass over Cmm is in nativeGen/MachCodeGen.hs
+{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# LANGUAGE GADTs, TypeFamilies, FlexibleContexts #-}
module PprCmm
( module PprCmmDecl
diff --git a/compiler/cmm/PprCmmDecl.hs b/compiler/cmm/PprCmmDecl.hs
index fc1ae119a0..85caebd353 100644
--- a/compiler/cmm/PprCmmDecl.hs
+++ b/compiler/cmm/PprCmmDecl.hs
@@ -32,6 +32,7 @@
-- A useful example pass over Cmm is in nativeGen/MachCodeGen.hs
--
+{-# OPTIONS_GHC -fno-warn-orphans #-}
module PprCmmDecl
( writeCmms, pprCmms, pprCmmGroup, pprSection, pprStatic
)
diff --git a/compiler/cmm/PprCmmExpr.hs b/compiler/cmm/PprCmmExpr.hs
index 119f2b7239..2f25b028d1 100644
--- a/compiler/cmm/PprCmmExpr.hs
+++ b/compiler/cmm/PprCmmExpr.hs
@@ -32,6 +32,7 @@
-- A useful example pass over Cmm is in nativeGen/MachCodeGen.hs
--
+{-# OPTIONS_GHC -fno-warn-orphans #-}
module PprCmmExpr
( pprExpr, pprLit
, pprExpr9 {-only to import in OldPprCmm. When it dies, remove the export -}
diff --git a/compiler/coreSyn/PprCore.lhs b/compiler/coreSyn/PprCore.lhs
index 39910c0812..3ca8c48855 100644
--- a/compiler/coreSyn/PprCore.lhs
+++ b/compiler/coreSyn/PprCore.lhs
@@ -6,6 +6,7 @@
Printing of Core syntax
\begin{code}
+{-# OPTIONS_GHC -fno-warn-orphans #-}
module PprCore (
pprCoreExpr, pprParendExpr,
pprCoreBinding, pprCoreBindings, pprCoreAlt,
diff --git a/compiler/coreSyn/PprExternalCore.lhs b/compiler/coreSyn/PprExternalCore.lhs
index 9c6846c494..26e64ee641 100644
--- a/compiler/coreSyn/PprExternalCore.lhs
+++ b/compiler/coreSyn/PprExternalCore.lhs
@@ -3,6 +3,7 @@
%
\begin{code}
+{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# OPTIONS -fno-warn-tabs #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and
diff --git a/compiler/ghc.cabal.in b/compiler/ghc.cabal.in
index 3c13bb4704..04735ed1b9 100644
--- a/compiler/ghc.cabal.in
+++ b/compiler/ghc.cabal.in
@@ -67,7 +67,7 @@ Library
else
Build-Depends: unix
- GHC-Options: -Wall -fno-warn-name-shadowing -fno-warn-orphans
+ GHC-Options: -Wall -fno-warn-name-shadowing
if flag(ghci)
Build-Depends: template-haskell
diff --git a/compiler/hsSyn/HsSyn.lhs b/compiler/hsSyn/HsSyn.lhs
index ba1794d281..b770fac30b 100644
--- a/compiler/hsSyn/HsSyn.lhs
+++ b/compiler/hsSyn/HsSyn.lhs
@@ -9,6 +9,7 @@ which is declared in the various \tr{Hs*} modules. This module,
therefore, is almost nothing but re-exporting.
\begin{code}
+{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# OPTIONS -fno-warn-tabs #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and
diff --git a/compiler/iface/BinIface.hs b/compiler/iface/BinIface.hs
index 201e7bb900..9298a0381a 100644
--- a/compiler/iface/BinIface.hs
+++ b/compiler/iface/BinIface.hs
@@ -2,6 +2,7 @@
-- (c) The University of Glasgow 2002-2006
--
+{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# OPTIONS_GHC -O #-}
-- We always optimise this, otherwise performance of a non-optimised
-- compiler is severely affected
diff --git a/compiler/iface/LoadIface.lhs b/compiler/iface/LoadIface.lhs
index 493e18b825..6c5e7d38d9 100644
--- a/compiler/iface/LoadIface.lhs
+++ b/compiler/iface/LoadIface.lhs
@@ -6,6 +6,7 @@
Loading interface files
\begin{code}
+{-# OPTIONS_GHC -fno-warn-orphans #-}
module LoadIface (
-- RnM/TcM functions
loadModuleInterface, loadModuleInterfaces,
diff --git a/compiler/nativeGen/PPC/Ppr.hs b/compiler/nativeGen/PPC/Ppr.hs
index dcc348a6fc..ea697912d5 100644
--- a/compiler/nativeGen/PPC/Ppr.hs
+++ b/compiler/nativeGen/PPC/Ppr.hs
@@ -6,6 +6,7 @@
--
-----------------------------------------------------------------------------
+{-# OPTIONS_GHC -fno-warn-orphans #-}
module PPC.Ppr (
pprNatCmmDecl,
pprBasicBlock,
diff --git a/compiler/nativeGen/RegAlloc/Linear/State.hs b/compiler/nativeGen/RegAlloc/Linear/State.hs
index 3de277b274..ca2ecd3883 100644
--- a/compiler/nativeGen/RegAlloc/Linear/State.hs
+++ b/compiler/nativeGen/RegAlloc/Linear/State.hs
@@ -3,6 +3,7 @@
-- Here we keep all the state that the register allocator keeps track
-- of as it walks the instructions in a basic block.
+{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# OPTIONS -fno-warn-tabs #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and
diff --git a/compiler/nativeGen/SPARC/Ppr.hs b/compiler/nativeGen/SPARC/Ppr.hs
index 7fe1975f9d..f522bc6c0b 100644
--- a/compiler/nativeGen/SPARC/Ppr.hs
+++ b/compiler/nativeGen/SPARC/Ppr.hs
@@ -6,6 +6,7 @@
--
-----------------------------------------------------------------------------
+{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# OPTIONS -fno-warn-tabs #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and
diff --git a/compiler/nativeGen/X86/Ppr.hs b/compiler/nativeGen/X86/Ppr.hs
index c460a9cce7..6e8320471d 100644
--- a/compiler/nativeGen/X86/Ppr.hs
+++ b/compiler/nativeGen/X86/Ppr.hs
@@ -6,6 +6,7 @@
--
-----------------------------------------------------------------------------
+{-# OPTIONS_GHC -fno-warn-orphans #-}
module X86.Ppr (
pprNatCmmDecl,
pprBasicBlock,
diff --git a/compiler/simplCore/FloatOut.lhs b/compiler/simplCore/FloatOut.lhs
index 18fc9b4af4..93397d84b9 100644
--- a/compiler/simplCore/FloatOut.lhs
+++ b/compiler/simplCore/FloatOut.lhs
@@ -6,6 +6,7 @@
``Long-distance'' floating of bindings towards the top level.
\begin{code}
+{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# OPTIONS -fno-warn-tabs #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and
diff --git a/compiler/typecheck/TcEnv.lhs b/compiler/typecheck/TcEnv.lhs
index fce17affaa..fa4fc40ddc 100644
--- a/compiler/typecheck/TcEnv.lhs
+++ b/compiler/typecheck/TcEnv.lhs
@@ -3,6 +3,7 @@
%
\begin{code}
+{-# OPTIONS_GHC -fno-warn-orphans #-}
module TcEnv(
TyThing(..), TcTyThing(..), TcId,
diff --git a/compiler/typecheck/TcRnMonad.lhs b/compiler/typecheck/TcRnMonad.lhs
index 1b60061675..8b84d552f1 100644
--- a/compiler/typecheck/TcRnMonad.lhs
+++ b/compiler/typecheck/TcRnMonad.lhs
@@ -5,6 +5,7 @@
Functions for working with the typechecker environment (setters, getters...).
\begin{code}
+{-# OPTIONS_GHC -fno-warn-orphans #-}
module TcRnMonad(
module TcRnMonad,
module TcRnTypes,
diff --git a/compiler/typecheck/TcSplice.lhs b/compiler/typecheck/TcSplice.lhs
index 4f3731ae0d..334c3a5c36 100644
--- a/compiler/typecheck/TcSplice.lhs
+++ b/compiler/typecheck/TcSplice.lhs
@@ -7,6 +7,7 @@ TcSplice: Template Haskell splices
\begin{code}
+{-# OPTIONS_GHC -fno-warn-orphans #-}
module TcSplice( tcSpliceType, tcSpliceExpr, tcSpliceDecls, tcBracket,
lookupThName_maybe,
runQuasiQuoteExpr, runQuasiQuotePat,
diff --git a/compiler/types/Type.lhs b/compiler/types/Type.lhs
index 1099303e48..691bd7551b 100644
--- a/compiler/types/Type.lhs
+++ b/compiler/types/Type.lhs
@@ -6,6 +6,7 @@
Type - public interface
\begin{code}
+{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# OPTIONS -fno-warn-tabs #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and
diff --git a/compiler/utils/Fingerprint.hsc b/compiler/utils/Fingerprint.hsc
index 735bf23628..3aef4d6b28 100644
--- a/compiler/utils/Fingerprint.hsc
+++ b/compiler/utils/Fingerprint.hsc
@@ -8,6 +8,7 @@
--
-- ----------------------------------------------------------------------------
+{-# OPTIONS_GHC -fno-warn-orphans #-}
module Fingerprint (
Fingerprint(..), fingerprint0,
readHexFingerprint,