summaryrefslogtreecommitdiff
path: root/compiler/main
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2011-11-04 15:06:56 +0000
committerIan Lynagh <igloo@earth.li>2011-11-04 15:57:46 +0000
commit1df198643cc5502ee103f043193d2990c9837e25 (patch)
tree1a5cf7036a3c0f8c2fa13b3d51fb9f492ddec5de /compiler/main
parented26b477377ac4ac2277a82effb8d1b830843851 (diff)
downloadhaskell-1df198643cc5502ee103f043193d2990c9837e25.tar.gz
Use -fwarn-tabs when validating
We only use it for "compiler" sources, i.e. not for libraries. Many modules have a -fno-warn-tabs kludge for now.
Diffstat (limited to 'compiler/main')
-rw-r--r--compiler/main/Annotations.lhs7
-rw-r--r--compiler/main/CodeOutput.lhs7
-rw-r--r--compiler/main/Constants.lhs7
-rw-r--r--compiler/main/DriverPhases.hs7
-rw-r--r--compiler/main/ErrUtils.lhs7
-rw-r--r--compiler/main/GHC.hs7
-rw-r--r--compiler/main/GhcMake.hs7
-rw-r--r--compiler/main/HeaderInfo.hs7
-rw-r--r--compiler/main/HscStats.lhs7
-rw-r--r--compiler/main/InteractiveEval.hs7
-rw-r--r--compiler/main/PackageConfig.hs8
-rw-r--r--compiler/main/Packages.lhs7
-rw-r--r--compiler/main/PprTyThing.hs7
-rw-r--r--compiler/main/StaticFlags.hs7
-rw-r--r--compiler/main/TidyPgm.lhs7
15 files changed, 106 insertions, 0 deletions
diff --git a/compiler/main/Annotations.lhs b/compiler/main/Annotations.lhs
index f031f14dc9..ec61a1f4a6 100644
--- a/compiler/main/Annotations.lhs
+++ b/compiler/main/Annotations.lhs
@@ -4,6 +4,13 @@
%
\begin{code}
+{-# 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
+-- detab the module (please do the detabbing in a separate patch). See
+-- http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#TabsvsSpaces
+-- for details
+
module Annotations (
-- * Main Annotation data types
Annotation(..),
diff --git a/compiler/main/CodeOutput.lhs b/compiler/main/CodeOutput.lhs
index 4941d5eea1..c97be6e13e 100644
--- a/compiler/main/CodeOutput.lhs
+++ b/compiler/main/CodeOutput.lhs
@@ -4,6 +4,13 @@
\section{Code output phase}
\begin{code}
+{-# 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
+-- detab the module (please do the detabbing in a separate patch). See
+-- http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#TabsvsSpaces
+-- for details
+
module CodeOutput( codeOutput, outputForeignStubs ) where
#include "HsVersions.h"
diff --git a/compiler/main/Constants.lhs b/compiler/main/Constants.lhs
index 236f1f8653..2e276f64c6 100644
--- a/compiler/main/Constants.lhs
+++ b/compiler/main/Constants.lhs
@@ -4,6 +4,13 @@
\section[Constants]{Info about this compilation}
\begin{code}
+{-# 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
+-- detab the module (please do the detabbing in a separate patch). See
+-- http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#TabsvsSpaces
+-- for details
+
module Constants (module Constants) where
#include "ghc_boot_platform.h"
diff --git a/compiler/main/DriverPhases.hs b/compiler/main/DriverPhases.hs
index 1835430f13..2a0785d499 100644
--- a/compiler/main/DriverPhases.hs
+++ b/compiler/main/DriverPhases.hs
@@ -7,6 +7,13 @@
--
-----------------------------------------------------------------------------
+{-# 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
+-- detab the module (please do the detabbing in a separate patch). See
+-- http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#TabsvsSpaces
+-- for details
+
module DriverPhases (
HscSource(..), isHsBoot, hscSourceString,
Phase(..),
diff --git a/compiler/main/ErrUtils.lhs b/compiler/main/ErrUtils.lhs
index f47b8be935..614d25aed1 100644
--- a/compiler/main/ErrUtils.lhs
+++ b/compiler/main/ErrUtils.lhs
@@ -4,6 +4,13 @@
\section[ErrsUtils]{Utilities for error reporting}
\begin{code}
+{-# 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
+-- detab the module (please do the detabbing in a separate patch). See
+-- http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#TabsvsSpaces
+-- for details
+
module ErrUtils (
Message, mkLocMessage, printError, pprMessageBag,
Severity(..),
diff --git a/compiler/main/GHC.hs b/compiler/main/GHC.hs
index 5e1eaac96f..039e8f15ba 100644
--- a/compiler/main/GHC.hs
+++ b/compiler/main/GHC.hs
@@ -6,6 +6,13 @@
--
-- -----------------------------------------------------------------------------
+{-# 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
+-- detab the module (please do the detabbing in a separate patch). See
+-- http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#TabsvsSpaces
+-- for details
+
module GHC (
-- * Initialisation
defaultErrorHandler,
diff --git a/compiler/main/GhcMake.hs b/compiler/main/GhcMake.hs
index d27e5246a9..abbaa1fb75 100644
--- a/compiler/main/GhcMake.hs
+++ b/compiler/main/GhcMake.hs
@@ -9,6 +9,13 @@
--
-- -----------------------------------------------------------------------------
+{-# 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
+-- detab the module (please do the detabbing in a separate patch). See
+-- http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#TabsvsSpaces
+-- for details
+
module GhcMake(
depanal,
load, LoadHowMuch(..),
diff --git a/compiler/main/HeaderInfo.hs b/compiler/main/HeaderInfo.hs
index a3f7e79dde..2b6a14bb27 100644
--- a/compiler/main/HeaderInfo.hs
+++ b/compiler/main/HeaderInfo.hs
@@ -8,6 +8,13 @@
--
-----------------------------------------------------------------------------
+{-# 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
+-- detab the module (please do the detabbing in a separate patch). See
+-- http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#TabsvsSpaces
+-- for details
+
module HeaderInfo ( getImports
, mkPrelImports -- used by the renamer too
, getOptionsFromFile, getOptions
diff --git a/compiler/main/HscStats.lhs b/compiler/main/HscStats.lhs
index 34310e038c..f89903f75c 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 -fno-warn-tabs #-}
+-- The above warning supression flag is a temporary kludge.
+-- While working on this module you are encouraged to remove it and
+-- detab the module (please do the detabbing in a separate patch). See
+-- http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#TabsvsSpaces
+-- for details
+
module HscStats ( ppSourceStats ) where
#include "HsVersions.h"
diff --git a/compiler/main/InteractiveEval.hs b/compiler/main/InteractiveEval.hs
index 0fd710a7eb..b4cf6b8197 100644
--- a/compiler/main/InteractiveEval.hs
+++ b/compiler/main/InteractiveEval.hs
@@ -6,6 +6,13 @@
--
-- -----------------------------------------------------------------------------
+{-# 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
+-- detab the module (please do the detabbing in a separate patch). See
+-- http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#TabsvsSpaces
+-- for details
+
module InteractiveEval (
#ifdef GHCI
RunResult(..), Status(..), Resume(..), History(..),
diff --git a/compiler/main/PackageConfig.hs b/compiler/main/PackageConfig.hs
index 50c1e7105a..913e58c6fb 100644
--- a/compiler/main/PackageConfig.hs
+++ b/compiler/main/PackageConfig.hs
@@ -3,6 +3,14 @@
--
-- | Package configuration information: essentially the interface to Cabal, with some utilities
+
+{-# 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
+-- detab the module (please do the detabbing in a separate patch). See
+-- http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#TabsvsSpaces
+-- for details
+
module PackageConfig (
-- $package_naming
diff --git a/compiler/main/Packages.lhs b/compiler/main/Packages.lhs
index 1efb5b6903..9c291e817b 100644
--- a/compiler/main/Packages.lhs
+++ b/compiler/main/Packages.lhs
@@ -2,6 +2,13 @@
% (c) The University of Glasgow, 2006
%
\begin{code}
+{-# 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
+-- detab the module (please do the detabbing in a separate patch). See
+-- http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#TabsvsSpaces
+-- for details
+
-- | Package manipulation
module Packages (
module PackageConfig,
diff --git a/compiler/main/PprTyThing.hs b/compiler/main/PprTyThing.hs
index 635bdce389..1ee18f84e3 100644
--- a/compiler/main/PprTyThing.hs
+++ b/compiler/main/PprTyThing.hs
@@ -6,6 +6,13 @@
--
-----------------------------------------------------------------------------
+{-# 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
+-- detab the module (please do the detabbing in a separate patch). See
+-- http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#TabsvsSpaces
+-- for details
+
module PprTyThing (
PrintExplicitForalls,
pprTyThing,
diff --git a/compiler/main/StaticFlags.hs b/compiler/main/StaticFlags.hs
index 37b500896b..dd00d3d6b3 100644
--- a/compiler/main/StaticFlags.hs
+++ b/compiler/main/StaticFlags.hs
@@ -1,3 +1,10 @@
+{-# 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
+-- detab the module (please do the detabbing in a separate patch). See
+-- http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#TabsvsSpaces
+-- for details
+
{-# OPTIONS -fno-cse #-}
-- -fno-cse is needed for GLOBAL_VAR's to behave properly
diff --git a/compiler/main/TidyPgm.lhs b/compiler/main/TidyPgm.lhs
index 85e8802f95..b2a6b5bb67 100644
--- a/compiler/main/TidyPgm.lhs
+++ b/compiler/main/TidyPgm.lhs
@@ -4,6 +4,13 @@
\section{Tidying up Core}
\begin{code}
+{-# 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
+-- detab the module (please do the detabbing in a separate patch). See
+-- http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#TabsvsSpaces
+-- for details
+
module TidyPgm (
mkBootModDetailsTc, tidyProgram, globaliseAndTidyId
) where