summaryrefslogtreecommitdiff
path: root/compiler/main
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2007-09-01 11:21:30 +0000
committerIan Lynagh <igloo@earth.li>2007-09-01 11:21:30 +0000
commit17b297d97d327620ed6bfab942f8992b2446f1bf (patch)
treec84753f3bbbc9a1f0a262abfad5ddcf9d5b6271b /compiler/main
parente11fa7a5e0025460df3b8562ccbf3ffd1db68d5d (diff)
downloadhaskell-17b297d97d327620ed6bfab942f8992b2446f1bf.tar.gz
Add {-# OPTIONS_GHC -w #-} and some blurb to all compiler modules
Diffstat (limited to 'compiler/main')
-rw-r--r--compiler/main/BreakArray.hs7
-rw-r--r--compiler/main/CmdLineParser.hs7
-rw-r--r--compiler/main/CodeOutput.lhs7
-rw-r--r--compiler/main/Constants.lhs7
-rw-r--r--compiler/main/DriverMkDepend.hs7
-rw-r--r--compiler/main/DriverPhases.hs7
-rw-r--r--compiler/main/DriverPipeline.hs7
-rw-r--r--compiler/main/DynFlags.hs7
-rw-r--r--compiler/main/ErrUtils.lhs7
-rw-r--r--compiler/main/Finder.lhs7
-rw-r--r--compiler/main/GHC.hs7
-rw-r--r--compiler/main/HeaderInfo.hs7
-rw-r--r--compiler/main/HscMain.lhs7
-rw-r--r--compiler/main/HscStats.lhs7
-rw-r--r--compiler/main/HscTypes.lhs7
-rw-r--r--compiler/main/InteractiveEval.hs7
-rw-r--r--compiler/main/Main.hs7
-rw-r--r--compiler/main/PackageConfig.hs7
-rw-r--r--compiler/main/Packages.lhs7
-rw-r--r--compiler/main/ParsePkgConf.y7
-rw-r--r--compiler/main/PprTyThing.hs7
-rw-r--r--compiler/main/StaticFlags.hs7
-rw-r--r--compiler/main/SysTools.lhs7
-rw-r--r--compiler/main/TidyPgm.lhs7
24 files changed, 168 insertions, 0 deletions
diff --git a/compiler/main/BreakArray.hs b/compiler/main/BreakArray.hs
index 50a1170975..86b9da44e4 100644
--- a/compiler/main/BreakArray.hs
+++ b/compiler/main/BreakArray.hs
@@ -7,6 +7,13 @@
--
-----------------------------------------------------------------------------
+{-# OPTIONS_GHC -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
+-- for details
+
module BreakArray
( BreakArray (BA)
-- constructor is exported only for ByteCodeGen
diff --git a/compiler/main/CmdLineParser.hs b/compiler/main/CmdLineParser.hs
index d237ad70e2..d68e6f78e2 100644
--- a/compiler/main/CmdLineParser.hs
+++ b/compiler/main/CmdLineParser.hs
@@ -9,6 +9,13 @@
--
-----------------------------------------------------------------------------
+{-# OPTIONS_GHC -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
+-- for details
+
module CmdLineParser (
processArgs, OptKind(..),
CmdLineP(..), getCmdLineState, putCmdLineState
diff --git a/compiler/main/CodeOutput.lhs b/compiler/main/CodeOutput.lhs
index 25a10f6fe5..6b07eadd65 100644
--- a/compiler/main/CodeOutput.lhs
+++ b/compiler/main/CodeOutput.lhs
@@ -4,6 +4,13 @@
\section{Code output phase}
\begin{code}
+{-# OPTIONS_GHC -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
+-- for details
+
module CodeOutput( codeOutput, outputForeignStubs ) where
#include "HsVersions.h"
diff --git a/compiler/main/Constants.lhs b/compiler/main/Constants.lhs
index 2e0c4d4095..fc47aade88 100644
--- a/compiler/main/Constants.lhs
+++ b/compiler/main/Constants.lhs
@@ -4,6 +4,13 @@
\section[Constants]{Info about this compilation}
\begin{code}
+{-# OPTIONS_GHC -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
+-- for details
+
module Constants (module Constants) where
import Data.Bits (shiftL)
diff --git a/compiler/main/DriverMkDepend.hs b/compiler/main/DriverMkDepend.hs
index b24c14e6b3..085c9e6d7e 100644
--- a/compiler/main/DriverMkDepend.hs
+++ b/compiler/main/DriverMkDepend.hs
@@ -6,6 +6,13 @@
--
-----------------------------------------------------------------------------
+{-# OPTIONS_GHC -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
+-- for details
+
module DriverMkDepend (
doMkDependHS
) where
diff --git a/compiler/main/DriverPhases.hs b/compiler/main/DriverPhases.hs
index 118b23abfc..498b007709 100644
--- a/compiler/main/DriverPhases.hs
+++ b/compiler/main/DriverPhases.hs
@@ -7,6 +7,13 @@
--
-----------------------------------------------------------------------------
+{-# OPTIONS_GHC -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
+-- for details
+
module DriverPhases (
HscSource(..), isHsBoot, hscSourceString,
Phase(..),
diff --git a/compiler/main/DriverPipeline.hs b/compiler/main/DriverPipeline.hs
index 67fe31d406..29fddd028d 100644
--- a/compiler/main/DriverPipeline.hs
+++ b/compiler/main/DriverPipeline.hs
@@ -6,6 +6,13 @@
--
-----------------------------------------------------------------------------
+{-# OPTIONS_GHC -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
+-- for details
+
module DriverPipeline (
-- Run a series of compilation steps in a pipeline, for a
-- collection of source files.
diff --git a/compiler/main/DynFlags.hs b/compiler/main/DynFlags.hs
index 8297067b70..bee06f18e4 100644
--- a/compiler/main/DynFlags.hs
+++ b/compiler/main/DynFlags.hs
@@ -13,6 +13,13 @@
--
-----------------------------------------------------------------------------
+{-# OPTIONS_GHC -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
+-- for details
+
module DynFlags (
-- Dynamic flags
DynFlag(..),
diff --git a/compiler/main/ErrUtils.lhs b/compiler/main/ErrUtils.lhs
index 8b3af12207..f89954d2ce 100644
--- a/compiler/main/ErrUtils.lhs
+++ b/compiler/main/ErrUtils.lhs
@@ -4,6 +4,13 @@
\section[ErrsUtils]{Utilities for error reporting}
\begin{code}
+{-# OPTIONS_GHC -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
+-- for details
+
module ErrUtils (
Message, mkLocMessage, printError,
Severity(..),
diff --git a/compiler/main/Finder.lhs b/compiler/main/Finder.lhs
index 56929ce24b..62d6740230 100644
--- a/compiler/main/Finder.lhs
+++ b/compiler/main/Finder.lhs
@@ -4,6 +4,13 @@
\section[Finder]{Module Finder}
\begin{code}
+{-# OPTIONS_GHC -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
+-- for details
+
module Finder (
flushFinderCaches,
FindResult(..),
diff --git a/compiler/main/GHC.hs b/compiler/main/GHC.hs
index 145d6bdfcd..6b01520eb2 100644
--- a/compiler/main/GHC.hs
+++ b/compiler/main/GHC.hs
@@ -6,6 +6,13 @@
--
-- -----------------------------------------------------------------------------
+{-# OPTIONS_GHC -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
+-- for details
+
module GHC (
-- * Initialisation
Session,
diff --git a/compiler/main/HeaderInfo.hs b/compiler/main/HeaderInfo.hs
index 51e491e9ac..9099246288 100644
--- a/compiler/main/HeaderInfo.hs
+++ b/compiler/main/HeaderInfo.hs
@@ -8,6 +8,13 @@
--
-----------------------------------------------------------------------------
+{-# OPTIONS_GHC -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
+-- for details
+
module HeaderInfo ( getImportsFromFile, getImports
, getOptionsFromFile, getOptions
, optionsErrorMsgs ) where
diff --git a/compiler/main/HscMain.lhs b/compiler/main/HscMain.lhs
index a9c9a1501d..c8f6f67f91 100644
--- a/compiler/main/HscMain.lhs
+++ b/compiler/main/HscMain.lhs
@@ -5,6 +5,13 @@
\section[GHC_Main]{Main driver for Glasgow Haskell compiler}
\begin{code}
+{-# OPTIONS_GHC -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
+-- for details
+
module HscMain
( newHscEnv, hscCmmFile
, hscFileCheck
diff --git a/compiler/main/HscStats.lhs b/compiler/main/HscStats.lhs
index 0327cce34e..21d47eb32c 100644
--- a/compiler/main/HscStats.lhs
+++ b/compiler/main/HscStats.lhs
@@ -4,6 +4,13 @@
\section[GHC_Stats]{Statistics for per-module compilations}
\begin{code}
+{-# OPTIONS_GHC -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
+-- for details
+
module HscStats ( ppSourceStats ) where
#include "HsVersions.h"
diff --git a/compiler/main/HscTypes.lhs b/compiler/main/HscTypes.lhs
index 719df2d8e1..a11c931b01 100644
--- a/compiler/main/HscTypes.lhs
+++ b/compiler/main/HscTypes.lhs
@@ -4,6 +4,13 @@
\section[HscTypes]{Types for the per-module compiler}
\begin{code}
+{-# OPTIONS_GHC -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
+-- for details
+
module HscTypes (
-- * Sessions and compilation state
Session(..), withSession, modifySession,
diff --git a/compiler/main/InteractiveEval.hs b/compiler/main/InteractiveEval.hs
index 8908022ba9..be7aa0a85b 100644
--- a/compiler/main/InteractiveEval.hs
+++ b/compiler/main/InteractiveEval.hs
@@ -6,6 +6,13 @@
--
-- -----------------------------------------------------------------------------
+{-# OPTIONS_GHC -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
+-- for details
+
module InteractiveEval (
#ifdef GHCI
RunResult(..), Status(..), Resume(..), History(..),
diff --git a/compiler/main/Main.hs b/compiler/main/Main.hs
index 038a7b9238..d1efe65ed8 100644
--- a/compiler/main/Main.hs
+++ b/compiler/main/Main.hs
@@ -7,6 +7,13 @@
--
-----------------------------------------------------------------------------
+{-# OPTIONS_GHC -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
+-- for details
+
module Main (main) where
#include "HsVersions.h"
diff --git a/compiler/main/PackageConfig.hs b/compiler/main/PackageConfig.hs
index b16bd5d77f..bb5e7fdb6d 100644
--- a/compiler/main/PackageConfig.hs
+++ b/compiler/main/PackageConfig.hs
@@ -2,6 +2,13 @@
-- (c) The University of Glasgow, 2004
--
+{-# OPTIONS_GHC -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
+-- for details
+
module PackageConfig (
-- * PackageId
PackageId,
diff --git a/compiler/main/Packages.lhs b/compiler/main/Packages.lhs
index 2283026fba..80ab2446dc 100644
--- a/compiler/main/Packages.lhs
+++ b/compiler/main/Packages.lhs
@@ -4,6 +4,13 @@
% Package manipulation
%
\begin{code}
+{-# OPTIONS_GHC -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
+-- for details
+
module Packages (
module PackageConfig,
diff --git a/compiler/main/ParsePkgConf.y b/compiler/main/ParsePkgConf.y
index e29eb945f0..5472abcfe4 100644
--- a/compiler/main/ParsePkgConf.y
+++ b/compiler/main/ParsePkgConf.y
@@ -1,4 +1,11 @@
{
+{-# OPTIONS_GHC -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
+-- for details
+
module ParsePkgConf( loadPackageConfig ) where
#include "HsVersions.h"
diff --git a/compiler/main/PprTyThing.hs b/compiler/main/PprTyThing.hs
index c712eb39d9..8c6e696278 100644
--- a/compiler/main/PprTyThing.hs
+++ b/compiler/main/PprTyThing.hs
@@ -6,6 +6,13 @@
--
-----------------------------------------------------------------------------
+{-# OPTIONS_GHC -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
+-- for details
+
module PprTyThing (
PrintExplicitForalls,
pprTyThing,
diff --git a/compiler/main/StaticFlags.hs b/compiler/main/StaticFlags.hs
index f9312a2c65..f285b89903 100644
--- a/compiler/main/StaticFlags.hs
+++ b/compiler/main/StaticFlags.hs
@@ -9,6 +9,13 @@
--
-----------------------------------------------------------------------------
+{-# OPTIONS_GHC -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
+-- for details
+
module StaticFlags (
parseStaticFlags,
staticFlags,
diff --git a/compiler/main/SysTools.lhs b/compiler/main/SysTools.lhs
index 2d4333ca05..a4222a7577 100644
--- a/compiler/main/SysTools.lhs
+++ b/compiler/main/SysTools.lhs
@@ -7,6 +7,13 @@
-----------------------------------------------------------------------------
\begin{code}
+{-# OPTIONS_GHC -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
+-- for details
+
module SysTools (
-- Initialisation
initSysTools,
diff --git a/compiler/main/TidyPgm.lhs b/compiler/main/TidyPgm.lhs
index f1564784ee..dec5c6b0d3 100644
--- a/compiler/main/TidyPgm.lhs
+++ b/compiler/main/TidyPgm.lhs
@@ -4,6 +4,13 @@
\section{Tidying up Core}
\begin{code}
+{-# OPTIONS_GHC -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
+-- for details
+
module TidyPgm( mkBootModDetails, tidyProgram ) where
#include "HsVersions.h"