disable horrible tab warning, needed in every file that Setup.hs pulls in

This is certianly a cabal bug for not passing the build options in the
cabal file when building Setup.hs.

And, why oh why did ghc enable this warning by default? So unhappy with
this choice.
This commit is contained in:
Joey Hess 2015-05-10 16:31:50 -04:00
parent f65e7a4cce
commit ed4fe02896
14 changed files with 21 additions and 0 deletions

View file

@ -5,6 +5,8 @@
- License: BSD-2-clause - License: BSD-2-clause
-} -}
{-# OPTIONS_GHC -fno-warn-tabs #-}
module Utility.Data where module Utility.Data where
{- First item in the list that is not Nothing. -} {- First item in the list that is not Nothing. -}

View file

@ -6,6 +6,7 @@
-} -}
{-# LANGUAGE CPP #-} {-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -fno-warn-tabs #-}
module Utility.Directory where module Utility.Directory where

View file

@ -6,6 +6,7 @@
-} -}
{-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE ScopedTypeVariables #-}
{-# OPTIONS_GHC -fno-warn-tabs #-}
module Utility.Exception ( module Utility.Exception (
module X, module X,

View file

@ -6,6 +6,7 @@
-} -}
{-# LANGUAGE CPP #-} {-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -fno-warn-tabs #-}
module Utility.FileSystemEncoding ( module Utility.FileSystemEncoding (
fileEncoding, fileEncoding,

View file

@ -6,6 +6,7 @@
-} -}
{-# LANGUAGE CPP #-} {-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -fno-warn-tabs #-}
module Utility.Misc where module Utility.Misc where

View file

@ -5,6 +5,8 @@
- License: BSD-2-clause - License: BSD-2-clause
-} -}
{-# OPTIONS_GHC -fno-warn-tabs #-}
module Utility.Monad where module Utility.Monad where
import Data.Maybe import Data.Maybe

View file

@ -5,6 +5,8 @@
- License: BSD-2-clause - License: BSD-2-clause
-} -}
{-# OPTIONS_GHC -fno-warn-tabs #-}
module Utility.OSX where module Utility.OSX where
import Utility.UserInfo import Utility.UserInfo

View file

@ -6,6 +6,7 @@
-} -}
{-# LANGUAGE PackageImports, CPP #-} {-# LANGUAGE PackageImports, CPP #-}
{-# OPTIONS_GHC -fno-warn-tabs #-}
module Utility.Path where module Utility.Path where

View file

@ -8,6 +8,7 @@
-} -}
{-# LANGUAGE CPP #-} {-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -fno-warn-tabs #-}
module Utility.PosixFiles ( module Utility.PosixFiles (
module X, module X,

View file

@ -7,6 +7,7 @@
-} -}
{-# LANGUAGE CPP, Rank2Types #-} {-# LANGUAGE CPP, Rank2Types #-}
{-# OPTIONS_GHC -fno-warn-tabs #-}
module Utility.Process ( module Utility.Process (
module X, module X,

View file

@ -5,6 +5,8 @@
- License: BSD-2-clause - License: BSD-2-clause
-} -}
{-# OPTIONS_GHC -fno-warn-tabs #-}
module Utility.SafeCommand where module Utility.SafeCommand where
import System.Exit import System.Exit

View file

@ -6,6 +6,7 @@
-} -}
{-# LANGUAGE CPP #-} {-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -fno-warn-tabs #-}
module Utility.Tmp where module Utility.Tmp where

View file

@ -6,6 +6,7 @@
-} -}
{-# LANGUAGE CPP #-} {-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -fno-warn-tabs #-}
module Utility.UserInfo ( module Utility.UserInfo (
myHomeDir, myHomeDir,

View file

@ -1,3 +1,7 @@
Lazy afternoon spent porting git-anenx to build under ghc 7.10. Required Lazy afternoon spent porting git-anenx to build under ghc 7.10. Required
rather a lot of changes to build, and even more to build cleanly after the rather a lot of changes to build, and even more to build cleanly after the
AMP transition. AMP transition.
Unfortunately, ghc 7.10 has started warning about every line that uses tab
for indentation. I had to add additional cruft to turn those warnings off
everywhere, and cannot say I'm happy about this at all.