summaryrefslogtreecommitdiff
path: root/compiler/utils
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/utils
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/utils')
-rw-r--r--compiler/utils/BufWrite.hs7
-rw-r--r--compiler/utils/Digraph.lhs7
-rw-r--r--compiler/utils/FastMutInt.lhs7
-rw-r--r--compiler/utils/GraphBase.hs7
-rw-r--r--compiler/utils/GraphColor.hs7
-rw-r--r--compiler/utils/GraphOps.hs7
-rw-r--r--compiler/utils/GraphPpr.hs7
-rw-r--r--compiler/utils/ListSetOps.lhs7
-rw-r--r--compiler/utils/Maybes.lhs7
-rw-r--r--compiler/utils/MonadUtils.hs7
-rw-r--r--compiler/utils/OrdList.lhs7
-rw-r--r--compiler/utils/Outputable.lhs7
-rw-r--r--compiler/utils/Panic.lhs7
-rw-r--r--compiler/utils/UniqFM.lhs7
-rw-r--r--compiler/utils/UniqSet.lhs7
-rw-r--r--compiler/utils/Util.lhs7
16 files changed, 112 insertions, 0 deletions
diff --git a/compiler/utils/BufWrite.hs b/compiler/utils/BufWrite.hs
index 306413573f..ba26be374e 100644
--- a/compiler/utils/BufWrite.hs
+++ b/compiler/utils/BufWrite.hs
@@ -10,6 +10,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 BufWrite (
BufHandle(..),
newBufHandle,
diff --git a/compiler/utils/Digraph.lhs b/compiler/utils/Digraph.lhs
index aa0f654e0c..1bb460674c 100644
--- a/compiler/utils/Digraph.lhs
+++ b/compiler/utils/Digraph.lhs
@@ -3,6 +3,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
+
{-# LANGUAGE ScopedTypeVariables #-}
module Digraph(
Graph, graphFromVerticesAndAdjacency, graphFromEdgedVertices,
diff --git a/compiler/utils/FastMutInt.lhs b/compiler/utils/FastMutInt.lhs
index 26183071f1..d29bb9136c 100644
--- a/compiler/utils/FastMutInt.lhs
+++ b/compiler/utils/FastMutInt.lhs
@@ -1,4 +1,11 @@
\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
+
{-# LANGUAGE BangPatterns #-}
{-# OPTIONS -cpp #-}
{-# OPTIONS_GHC -O #-}
diff --git a/compiler/utils/GraphBase.hs b/compiler/utils/GraphBase.hs
index 249626eb27..c070df4762 100644
--- a/compiler/utils/GraphBase.hs
+++ b/compiler/utils/GraphBase.hs
@@ -1,6 +1,13 @@
-- | Types for the general graph colorer.
+{-# 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 GraphBase (
Triv,
Graph (..),
diff --git a/compiler/utils/GraphColor.hs b/compiler/utils/GraphColor.hs
index 8dc41216e7..b9ed3e2643 100644
--- a/compiler/utils/GraphColor.hs
+++ b/compiler/utils/GraphColor.hs
@@ -1,5 +1,12 @@
{-# OPTIONS -fno-warn-missing-signatures #-}
+{-# 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
+
-- | Graph Coloring.
-- This is a generic graph coloring library, abstracted over the type of
-- the node keys, nodes and colors.
diff --git a/compiler/utils/GraphOps.hs b/compiler/utils/GraphOps.hs
index 1fa4199aa2..69d4943fb0 100644
--- a/compiler/utils/GraphOps.hs
+++ b/compiler/utils/GraphOps.hs
@@ -1,4 +1,11 @@
{-# OPTIONS -fno-warn-missing-signatures #-}
+{-# 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
+
-- | Basic operations on graphs.
--
diff --git a/compiler/utils/GraphPpr.hs b/compiler/utils/GraphPpr.hs
index 8149b2aa86..5ea5fdfb75 100644
--- a/compiler/utils/GraphPpr.hs
+++ b/compiler/utils/GraphPpr.hs
@@ -1,6 +1,13 @@
-- | Pretty printing of graphs.
+{-# 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 GraphPpr (
dumpGraph,
dotGraph
diff --git a/compiler/utils/ListSetOps.lhs b/compiler/utils/ListSetOps.lhs
index 334fb59689..2c6c6b0b6c 100644
--- a/compiler/utils/ListSetOps.lhs
+++ b/compiler/utils/ListSetOps.lhs
@@ -5,6 +5,13 @@
\section[ListSetOps]{Set-like operations on lists}
\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 ListSetOps (
unionLists, minusList, insertList,
diff --git a/compiler/utils/Maybes.lhs b/compiler/utils/Maybes.lhs
index 39e6185a19..5d8fcfa6cc 100644
--- a/compiler/utils/Maybes.lhs
+++ b/compiler/utils/Maybes.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 Maybes (
module Data.Maybe,
diff --git a/compiler/utils/MonadUtils.hs b/compiler/utils/MonadUtils.hs
index 75a88dfcbd..3108a03d64 100644
--- a/compiler/utils/MonadUtils.hs
+++ b/compiler/utils/MonadUtils.hs
@@ -2,6 +2,13 @@
-- | Utilities related to Monad and Applicative classes
-- Mostly for backwards compatability.
+{-# 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 MonadUtils
( Applicative(..)
, (<$>)
diff --git a/compiler/utils/OrdList.lhs b/compiler/utils/OrdList.lhs
index 74c9ed8d0b..a56cdf3f58 100644
--- a/compiler/utils/OrdList.lhs
+++ b/compiler/utils/OrdList.lhs
@@ -9,6 +9,13 @@ Provide trees (of instructions), so that lists of instructions
can be appended in linear time.
\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 OrdList (
OrdList,
nilOL, isNilOL, unitOL, appOL, consOL, snocOL, concatOL,
diff --git a/compiler/utils/Outputable.lhs b/compiler/utils/Outputable.lhs
index bb4685d02c..d69e8ada63 100644
--- a/compiler/utils/Outputable.lhs
+++ b/compiler/utils/Outputable.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
+
-- | This module defines classes and functions for pretty-printing. It also
-- exports a number of helpful debugging and other utilities such as 'trace' and 'panic'.
--
diff --git a/compiler/utils/Panic.lhs b/compiler/utils/Panic.lhs
index 1fd815604c..4cf2695b76 100644
--- a/compiler/utils/Panic.lhs
+++ b/compiler/utils/Panic.lhs
@@ -8,6 +8,13 @@ It's hard to put these functions anywhere else without causing
some unnecessary loops in the module dependency graph.
\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 Panic (
GhcException(..), showGhcException, throwGhcException, handleGhcException,
ghcError, progName,
diff --git a/compiler/utils/UniqFM.lhs b/compiler/utils/UniqFM.lhs
index 0cd9235cad..c3d204215e 100644
--- a/compiler/utils/UniqFM.lhs
+++ b/compiler/utils/UniqFM.lhs
@@ -20,6 +20,13 @@ and ``addToUFM\_C'' and ``Data.IntMap.insertWith'' differ in the order
of arguments of combining function.
\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
+
{-# OPTIONS -Wall #-}
module UniqFM (
-- * Unique-keyed mappings
diff --git a/compiler/utils/UniqSet.lhs b/compiler/utils/UniqSet.lhs
index 443d28b3e4..f8e7d9039f 100644
--- a/compiler/utils/UniqSet.lhs
+++ b/compiler/utils/UniqSet.lhs
@@ -9,6 +9,13 @@ Based on @UniqFMs@ (as you would expect).
Basically, the things need to be in class @Uniquable@.
\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 UniqSet (
-- * Unique set type
UniqSet, -- type synonym for UniqFM a
diff --git a/compiler/utils/Util.lhs b/compiler/utils/Util.lhs
index dccb52dbb7..5fa4691113 100644
--- a/compiler/utils/Util.lhs
+++ b/compiler/utils/Util.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
+
-- | Highly random utility functions
module Util (
-- * Flags dependent on the compiler build