Don't import FastString in HsVersions.h
authorIan Lynagh <igloo@earth.li>
Sat, 29 Mar 2008 18:50:43 +0000 (18:50 +0000)
committerIan Lynagh <igloo@earth.li>
Sat, 29 Mar 2008 18:50:43 +0000 (18:50 +0000)
Modules that need it import it themselves instead.

118 files changed:
compiler/HsVersions.h
compiler/basicTypes/BasicTypes.lhs
compiler/basicTypes/IdInfo.lhs
compiler/basicTypes/NameEnv.lhs
compiler/basicTypes/NameSet.lhs
compiler/basicTypes/NewDemand.lhs
compiler/basicTypes/VarEnv.lhs
compiler/basicTypes/VarSet.lhs
compiler/cmm/CmmCPSGen.hs
compiler/cmm/CmmInfo.hs
compiler/cmm/CmmLint.hs
compiler/cmm/CmmOpt.hs
compiler/cmm/MachOp.hs
compiler/cmm/MkZipCfg.hs
compiler/cmm/OptimizationFuel.hs
compiler/cmm/ZipCfg.hs
compiler/cmm/ZipDataflow0.hs
compiler/codeGen/CgBindery.lhs
compiler/codeGen/CgCon.lhs
compiler/codeGen/CgForeignCall.hs
compiler/codeGen/CgHeapery.lhs
compiler/codeGen/CgPrimOp.hs
compiler/codeGen/CgTailCall.lhs
compiler/codeGen/SMRep.lhs
compiler/coreSyn/CoreFVs.lhs
compiler/coreSyn/CoreLint.lhs
compiler/coreSyn/CorePrep.lhs
compiler/coreSyn/CoreSubst.lhs
compiler/coreSyn/CoreTidy.lhs
compiler/coreSyn/CoreUnfold.lhs
compiler/deSugar/DsGRHSs.lhs
compiler/deSugar/DsListComp.lhs
compiler/deSugar/DsMonad.lhs
compiler/deSugar/Match.lhs
compiler/deSugar/MatchCon.lhs
compiler/ghci/RtClosureInspect.hs
compiler/hsSyn/HsBinds.lhs
compiler/hsSyn/HsDoc.hs
compiler/hsSyn/HsSyn.lhs
compiler/hsSyn/HsTypes.lhs
compiler/iface/LoadIface.lhs
compiler/iface/TcIface.lhs
compiler/main/CmdLineParser.hs
compiler/main/Constants.lhs
compiler/main/DriverMkDepend.hs
compiler/main/DriverPipeline.hs
compiler/main/DynFlags.hs
compiler/main/ErrUtils.lhs
compiler/main/GHC.hs
compiler/main/HscStats.lhs
compiler/main/HscTypes.lhs
compiler/main/PackageConfig.hs
compiler/main/PprTyThing.hs
compiler/main/StaticFlags.hs
compiler/main/SysTools.lhs
compiler/main/TidyPgm.lhs
compiler/nativeGen/PositionIndependentCode.hs
compiler/nativeGen/RegAllocLinear.hs
compiler/nativeGen/RegLiveness.hs
compiler/prelude/ForeignCall.lhs
compiler/prelude/TysPrim.lhs
compiler/profiling/SCCfinal.lhs
compiler/rename/RnBinds.lhs
compiler/rename/RnNames.lhs
compiler/rename/RnSource.lhs
compiler/rename/RnTypes.lhs
compiler/simplCore/CSE.lhs
compiler/simplCore/FloatOut.lhs
compiler/simplCore/OccurAnal.lhs
compiler/simplCore/SimplEnv.lhs
compiler/simplCore/SimplMonad.lhs
compiler/simplCore/SimplUtils.lhs
compiler/simplCore/Simplify.lhs
compiler/simplStg/SRT.lhs
compiler/simplStg/SimplStg.lhs
compiler/simplStg/StgStats.lhs
compiler/stgSyn/CoreToStg.lhs
compiler/stgSyn/StgLint.lhs
compiler/stgSyn/StgSyn.lhs
compiler/stranal/WwLib.lhs
compiler/typecheck/FamInst.lhs
compiler/typecheck/Inst.lhs
compiler/typecheck/TcArrows.lhs
compiler/typecheck/TcBinds.lhs
compiler/typecheck/TcDefaults.lhs
compiler/typecheck/TcDeriv.lhs
compiler/typecheck/TcEnv.lhs
compiler/typecheck/TcForeign.lhs
compiler/typecheck/TcGadt.lhs
compiler/typecheck/TcHsSyn.lhs
compiler/typecheck/TcHsType.lhs
compiler/typecheck/TcMType.lhs
compiler/typecheck/TcMatches.lhs
compiler/typecheck/TcRnTypes.lhs
compiler/typecheck/TcRules.lhs
compiler/typecheck/TcSimplify.lhs
compiler/typecheck/TcTyClsDecls.lhs
compiler/typecheck/TcTyFuns.lhs
compiler/typecheck/TcType.lhs
compiler/typecheck/TcUnify.lhs
compiler/types/Class.lhs
compiler/types/Coercion.lhs
compiler/types/FamInstEnv.lhs
compiler/types/FunDeps.lhs
compiler/types/InstEnv.lhs
compiler/types/Type.lhs
compiler/types/Unify.lhs
compiler/utils/Digraph.lhs
compiler/utils/Encoding.hs
compiler/utils/FastFunctions.lhs
compiler/utils/FastString.lhs
compiler/utils/FastTypes.lhs
compiler/utils/Interval.hs
compiler/utils/Panic.lhs
compiler/utils/UniqFM.lhs
compiler/utils/Util.lhs
compiler/vectorise/VectCore.hs
compiler/vectorise/VectType.hs

index 034a9bc..1ba8a01 100644 (file)
@@ -60,21 +60,12 @@ name = Util.global (value);
 #define WARN(e,msg)    if False && (e) then pprPanic "WARN" (msg) else
 #endif
 
 #define WARN(e,msg)    if False && (e) then pprPanic "WARN" (msg) else
 #endif
 
--- This conditional lets us switch off the "import FastString"
--- when compiling FastString itself, or when compiling modules that
--- don't use it (and would otherwise get warnings, which we treat
--- as errors). Can we do this more nicely?
-#if !defined(COMPILING_FAST_STRING) && !defined(FAST_STRING_NOT_NEEDED)
--- 
-import qualified FastString as FS 
-#endif
-
 #if defined(__GLASGOW_HASKELL__)
 #if defined(__GLASGOW_HASKELL__)
-#define SLIT(x)         (FS.mkLitString# (x#))
-#define FSLIT(x) (FS.mkFastString# (x#))
+#define SLIT(x)         (FastString.mkLitString# (x#))
+#define FSLIT(x) (FastString.mkFastString# (x#))
 #else
 #else
-#define SLIT(x)  (FS.mkLitString (x))
-#define FSLIT(x) (FS.mkFastString (x))
+#define SLIT(x)  (FastString.mkLitString (x))
+#define FSLIT(x) (FastString.mkFastString (x))
 #endif
 
 -- Useful for declaring arguments to be strict
 #endif
 
 -- Useful for declaring arguments to be strict
index 7a9ff56..d60321a 100644 (file)
@@ -58,7 +58,7 @@ module BasicTypes(
 
 #include "HsVersions.h"
 
 
 #include "HsVersions.h"
 
-import FastString( FastString )
+import FastString
 import Outputable
 \end{code}
 
 import Outputable
 \end{code}
 
index 0a54395..708f4df 100644 (file)
@@ -92,6 +92,7 @@ import ForeignCall
 import NewDemand
 import Outputable      
 import Module
 import NewDemand
 import Outputable      
 import Module
+import FastString
 
 import Data.Maybe
 
 
 import Data.Maybe
 
index cebabdd..0f2023b 100644 (file)
@@ -16,8 +16,6 @@ module NameEnv (
        elemNameEnv, mapNameEnv
     ) where
 
        elemNameEnv, mapNameEnv
     ) where
 
--- XXX This define is a bit of a hack, and should be done more nicely
-#define FAST_STRING_NOT_NEEDED 1
 #include "HsVersions.h"
 
 import Name
 #include "HsVersions.h"
 
 import Name
index 8776714..e60ea23 100644 (file)
@@ -22,8 +22,6 @@ module NameSet (
        findUses, duDefs, duUses, allUses
     ) where
 
        findUses, duDefs, duUses, allUses
     ) where
 
--- XXX This define is a bit of a hack, and should be done more nicely
-#define FAST_STRING_NOT_NEEDED 1
 #include "HsVersions.h"
 
 import Name
 #include "HsVersions.h"
 
 import Name
index f69d2a4..668a35e 100644 (file)
@@ -23,8 +23,6 @@ module NewDemand(
        pprIfaceStrictSig, appIsBottom, isBottomingSig, seqStrictSig,
      ) where
 
        pprIfaceStrictSig, appIsBottom, isBottomingSig, seqStrictSig,
      ) where
 
--- XXX This define is a bit of a hack, and should be done more nicely
-#define FAST_STRING_NOT_NEEDED 1
 #include "HsVersions.h"
 
 import StaticFlags
 #include "HsVersions.h"
 
 import StaticFlags
index 67bc120..bb988b2 100644 (file)
@@ -46,6 +46,7 @@ import Maybes
 import Outputable
 import FastTypes
 import StaticFlags
 import Outputable
 import FastTypes
 import StaticFlags
+import FastString
 \end{code}
 
 
 \end{code}
 
 
index d4293ba..d7e8567 100644 (file)
@@ -17,8 +17,6 @@ module VarSet (
        elemVarSetByKey
     ) where
 
        elemVarSetByKey
     ) where
 
--- XXX This define is a bit of a hack, and should be done more nicely
-#define FAST_STRING_NOT_NEEDED 1
 #include "HsVersions.h"
 
 import Var
 #include "HsVersions.h"
 
 import Var
index 55a7397..0d409ab 100644 (file)
@@ -33,6 +33,7 @@ import StaticFlags
 import Unique
 import Maybe
 import List
 import Unique
 import Maybe
 import List
+import FastString
 
 import Panic
 
 
 import Panic
 
index 49a77e2..c0e217c 100644 (file)
@@ -276,6 +276,3 @@ mkStdInfoTable type_descr closure_descr cl_type srt_len layout_lit
 
     type_lit = packHalfWordsCLit cl_type srt_len
 
 
     type_lit = packHalfWordsCLit cl_type srt_len
 
-
-_unused :: FS.FastString -- stops a warning
-_unused = undefined
index e376e56..c4aee8a 100644 (file)
@@ -27,6 +27,7 @@ import Outputable
 import PprCmm
 import Unique
 import Constants
 import PprCmm
 import Unique
 import Constants
+import FastString
 
 import Control.Monad
 
 
 import Control.Monad
 
index 4d0390d..6adafb5 100644 (file)
@@ -574,5 +574,3 @@ isComparisonExpr _other         = False
 isPicReg (CmmReg (CmmGlobal PicBaseReg)) = True
 isPicReg _ = False
 
 isPicReg (CmmReg (CmmGlobal PicBaseReg)) = True
 isPicReg _ = False
 
-_unused :: FS.FastString -- stops a warning
-_unused = undefined
index 10cc0cd..8f55000 100644 (file)
@@ -90,6 +90,7 @@ module MachOp         (
 
 import Constants
 import Outputable
 
 import Constants
 import Outputable
+import FastString
 
 -- -----------------------------------------------------------------------------
 -- MachRep
 
 -- -----------------------------------------------------------------------------
 -- MachRep
index 484068a..067e749 100644 (file)
@@ -360,5 +360,3 @@ Emitting a Branch at this point is fine:
 freshBlockId :: String -> UniqSM BlockId
 freshBlockId _ = do { u <- getUniqueUs; return $ BlockId u }
 
 freshBlockId :: String -> UniqSM BlockId
 freshBlockId _ = do { u <- getUniqueUs; return $ BlockId u }
 
-_unused :: FS.FastString
-_unused = undefined
index 6e05cdc..bc32626 100644 (file)
@@ -48,11 +48,6 @@ oneLessFuel f = f
 diffFuel _ _ = 0
 #endif
 
 diffFuel _ _ = 0
 #endif
 
--- stop warnings about things that aren't used
-_unused :: {-State#-} () -> FS.FastString
-_unused = undefined panic
-
-
 data FuelState = FuelState { fs_fuellimit :: OptimizationFuel, fs_lastpass :: String }
 newtype FuelMonad a = FuelMonad (FuelState -> (a, FuelState))
 
 data FuelState = FuelState { fs_fuellimit :: OptimizationFuel, fs_lastpass :: String }
 newtype FuelMonad a = FuelMonad (FuelState -> (a, FuelState))
 
index 1b9b5c3..f07d2fa 100644 (file)
@@ -707,5 +707,3 @@ pprGraph (Graph tail blockenv) =
     where pprBlock (Block id tail) = ppr id <> colon $$ ppr tail
           blocks = postorder_dfs_from blockenv tail
 
     where pprBlock (Block id tail) = ppr id <> colon $$ ppr tail
           blocks = postorder_dfs_from blockenv tail
 
-_unused :: FS.FastString
-_unused = undefined
index 7503d45..00f15db 100644 (file)
@@ -1088,10 +1088,6 @@ subAnalysis' m =
   where pprFacts env = nest 2 $ vcat $ map pprFact $ ufmToList env
         pprFact (id, a) = hang (ppr id <> colon) 4 (ppr a)
 
   where pprFacts env = nest 2 $ vcat $ map pprFact $ ufmToList env
         pprFact (id, a) = hang (ppr id <> colon) 4 (ppr a)
 
-
-_unused :: FS.FastString
-_unused = undefined
-
 null_b_ft = BComp "do nothing" Nothing no2 no2 no2
     where no2 _ _ = Nothing
 
 null_b_ft = BComp "do nothing" Nothing no2 no2 no2
     where no2 _ _ = Nothing
 
index d9ddddb..2ea13f6 100644 (file)
@@ -62,6 +62,7 @@ import StgSyn
 import Unique
 import UniqSet
 import Outputable
 import Unique
 import UniqSet
 import Outputable
+import FastString
 
 \end{code}
 
 
 \end{code}
 
index 711c633..b7dde73 100644 (file)
@@ -52,6 +52,7 @@ import PrelInfo
 import Outputable
 import ListSetOps
 import Util
 import Outputable
 import ListSetOps
 import Util
+import FastString
 \end{code}
 
 
 \end{code}
 
 
index 8e1be19..e9a542e 100644 (file)
@@ -43,6 +43,7 @@ import ClosureInfo
 import Constants
 import StaticFlags
 import Outputable
 import Constants
 import StaticFlags
 import Outputable
+import FastString
 
 import Control.Monad
 
 
 import Control.Monad
 
index 9cb1bb4..4592e19 100644 (file)
@@ -52,6 +52,7 @@ import Util
 import Constants
 import PackageConfig
 import Outputable
 import Constants
 import PackageConfig
 import Outputable
+import FastString
 
 import Data.List
 \end{code}
 
 import Data.List
 \end{code}
index c77e8e5..207ffe2 100644 (file)
@@ -35,6 +35,7 @@ import PrimOp
 import SMRep
 import Constants
 import Outputable
 import SMRep
 import Constants
 import Outputable
+import FastString
 
 -- ---------------------------------------------------------------------------
 -- Code generation for PrimOps
 
 -- ---------------------------------------------------------------------------
 -- Code generation for PrimOps
index cd100e8..475196a 100644 (file)
@@ -474,8 +474,3 @@ adjustSpAndHp newRealSp
        }
 \end{code}
 
        }
 \end{code}
 
-Some things are unused.
-\begin{code}
-_unused :: FS.FastString
-_unused = undefined
-\end{code}
index 4bc1222..1845c44 100644 (file)
@@ -53,6 +53,7 @@ import MachOp
 import StaticFlags
 import Constants
 import Outputable
 import StaticFlags
 import Constants
 import Outputable
+import FastString
 
 import Data.Word
 \end{code}
 
 import Data.Word
 \end{code}
index 57316c7..7b0f027 100644 (file)
@@ -30,8 +30,6 @@ module CoreFVs (
        freeVarsOf              -- CoreExprWithFVs -> IdSet
     ) where
 
        freeVarsOf              -- CoreExprWithFVs -> IdSet
     ) where
 
--- XXX This define is a bit of a hack, and should be done more nicely
-#define FAST_STRING_NOT_NEEDED 1
 #include "HsVersions.h"
 
 import CoreSyn
 #include "HsVersions.h"
 
 import CoreSyn
index e903c6a..345fb73 100644 (file)
@@ -39,6 +39,7 @@ import StaticFlags
 import ListSetOps
 import DynFlags
 import Outputable
 import ListSetOps
 import DynFlags
 import Outputable
+import FastString
 import Util
 import Data.Maybe
 \end{code}
 import Util
 import Data.Maybe
 \end{code}
index 4d94261..f0c2d9f 100644 (file)
@@ -35,6 +35,7 @@ import DynFlags
 import Util
 import Outputable
 import MonadUtils
 import Util
 import Outputable
 import MonadUtils
+import FastString
 \end{code}
 
 -- ---------------------------------------------------------------------------
 \end{code}
 
 -- ---------------------------------------------------------------------------
index 503432d..adeeadd 100644 (file)
@@ -43,6 +43,7 @@ import UniqSupply
 import Maybes
 import Outputable
 import PprCore         ()              -- Instances
 import Maybes
 import Outputable
 import PprCore         ()              -- Instances
+import FastString
 
 import Data.List
 \end{code}
 
 import Data.List
 \end{code}
index 5acee51..3f84021 100644 (file)
@@ -11,8 +11,6 @@ module CoreTidy (
        tidyExpr, tidyVarOcc, tidyRule, tidyRules 
     ) where
 
        tidyExpr, tidyVarOcc, tidyRule, tidyRules 
     ) where
 
--- XXX This define is a bit of a hack, and should be done more nicely
-#define FAST_STRING_NOT_NEEDED 1
 #include "HsVersions.h"
 
 import CoreSyn
 #include "HsVersions.h"
 
 import CoreSyn
index 7670060..8da91ed 100644 (file)
@@ -48,6 +48,7 @@ import Type
 import PrelNames
 import Bag
 import FastTypes
 import PrelNames
 import Bag
 import FastTypes
+import FastString
 import Outputable
 
 \end{code}
 import Outputable
 
 \end{code}
index 683dd21..83ceeca 100644 (file)
@@ -15,8 +15,6 @@ Matching guarded right-hand-sides (GRHSs)
 
 module DsGRHSs ( dsGuarded, dsGRHSs ) where
 
 
 module DsGRHSs ( dsGuarded, dsGRHSs ) where
 
--- XXX This define is a bit of a hack, and should be done more nicely
-#define FAST_STRING_NOT_NEEDED 1
 #include "HsVersions.h"
 
 import {-# SOURCE #-} DsExpr  ( dsLExpr, dsLocalBinds )
 #include "HsVersions.h"
 
 import {-# SOURCE #-} DsExpr  ( dsLExpr, dsLocalBinds )
index e5e1fd9..03da525 100644 (file)
@@ -15,8 +15,6 @@ Desugaring list comprehensions and array comprehensions
 
 module DsListComp ( dsListComp, dsPArrComp ) where
 
 
 module DsListComp ( dsListComp, dsPArrComp ) where
 
--- XXX This define is a bit of a hack, and should be done more nicely
-#define FAST_STRING_NOT_NEEDED 1
 #include "HsVersions.h"
 
 import {-# SOURCE #-} DsExpr ( dsLExpr, dsLocalBinds )
 #include "HsVersions.h"
 
 import {-# SOURCE #-} DsExpr ( dsLExpr, dsLocalBinds )
index 52b7705..10cd28a 100644 (file)
@@ -59,6 +59,7 @@ import OccName
 import DynFlags
 import ErrUtils
 import MonadUtils
 import DynFlags
 import ErrUtils
 import MonadUtils
+import FastString
 
 import Data.IORef
 \end{code}
 
 import Data.IORef
 \end{code}
index 793cc56..a7e9bce 100644 (file)
@@ -43,6 +43,7 @@ import Maybes
 import Util
 import Name
 import Outputable
 import Util
 import Name
 import Outputable
+import FastString
 \end{code}
 
 This function is a wrapper of @match@, it must be called from all the parts where 
 \end{code}
 
 This function is a wrapper of @match@, it must be called from all the parts where 
index 3baa966..4e9ee8e 100644 (file)
@@ -15,8 +15,6 @@ Pattern-matching constructors
 
 module MatchCon ( matchConFamily ) where
 
 
 module MatchCon ( matchConFamily ) where
 
--- XXX This define is a bit of a hack, and should be done more nicely
-#define FAST_STRING_NOT_NEEDED 1
 #include "HsVersions.h"
 
 import {-# SOURCE #-} Match    ( match )
 #include "HsVersions.h"
 
 import {-# SOURCE #-} Match    ( match )
index 269a7bb..8941638 100644 (file)
@@ -68,6 +68,7 @@ import PrelNames
 import TysWiredIn
 
 import Outputable
 import TysWiredIn
 
 import Outputable
+import FastString
 import Panic
 
 #ifndef GHCI_TABLES_NEXT_TO_CODE
 import Panic
 
 #ifndef GHCI_TABLES_NEXT_TO_CODE
index 07c631a..d1c2234 100644 (file)
@@ -35,6 +35,7 @@ import SrcLoc
 import Util
 import Var
 import Bag
 import Util
 import Var
 import Bag
+import FastString
 \end{code}
 
 %************************************************************************
 \end{code}
 
 %************************************************************************
index dc7245d..fd721c0 100644 (file)
@@ -6,8 +6,6 @@ module HsDoc (
   ppr_mbDoc
   ) where
 
   ppr_mbDoc
   ) where
 
--- XXX This define is a bit of a hack, and should be done more nicely
-#define FAST_STRING_NOT_NEEDED 1
 #include "HsVersions.h"
 
 import Outputable
 #include "HsVersions.h"
 
 import Outputable
index 66f6633..20e339f 100644 (file)
@@ -46,6 +46,7 @@ import IfaceSyn               ( IfaceBinding )
 import Outputable
 import SrcLoc          ( Located(..) )
 import Module          ( Module, ModuleName )
 import Outputable
 import SrcLoc          ( Located(..) )
 import Module          ( Module, ModuleName )
+import FastString
 \end{code}
 
 All we actually declare here is the top-level structure for a module.
 \end{code}
 
 All we actually declare here is the top-level structure for a module.
index 2b3fc09..25d6566 100644 (file)
@@ -38,6 +38,7 @@ import BasicTypes
 import SrcLoc
 import StaticFlags
 import Outputable
 import SrcLoc
 import StaticFlags
 import Outputable
+import FastString
 \end{code}
 
 
 \end{code}
 
 
index 6211176..feb51d1 100644 (file)
@@ -58,6 +58,7 @@ import Outputable
 import BinIface
 import Panic
 import Util
 import BinIface
 import Panic
 import Util
+import FastString
 
 import Control.Monad
 import Data.List
 
 import Control.Monad
 import Data.List
index b50ff7f..e1a6d2b 100644 (file)
@@ -58,8 +58,9 @@ import Maybes
 import SrcLoc
 import DynFlags
 import Util
 import SrcLoc
 import DynFlags
 import Util
-import Control.Monad
+import FastString
 
 
+import Control.Monad
 import Data.List
 import Data.Maybe
 \end{code}
 import Data.List
 import Data.Maybe
 \end{code}
index c7ad66e..8ec2f6a 100644 (file)
@@ -14,8 +14,6 @@ module CmdLineParser (
         CmdLineP(..), getCmdLineState, putCmdLineState
   ) where
 
         CmdLineP(..), getCmdLineState, putCmdLineState
   ) where
 
--- XXX This define is a bit of a hack, and should be done more nicely
-#define FAST_STRING_NOT_NEEDED 1
 #include "HsVersions.h"
 
 import Util
 #include "HsVersions.h"
 
 import Util
index d26db11..5197172 100644 (file)
@@ -13,8 +13,6 @@ import Data.Bits (shiftL)
 -- we want; if we just hope a -I... will get the right one, we could
 -- be in trouble.
 
 -- we want; if we just hope a -I... will get the right one, we could
 -- be in trouble.
 
--- XXX This define is a bit of a hack, and should be done more nicely
-#define FAST_STRING_NOT_NEEDED 1
 #include "HsVersions.h"
 #include "../includes/MachRegs.h"
 #include "../includes/Constants.h"
 #include "HsVersions.h"
 #include "../includes/MachRegs.h"
 #include "../includes/Constants.h"
index 901b3bb..4155274 100644 (file)
@@ -35,6 +35,7 @@ import Panic
 import SrcLoc
 import Data.List
 import CmdLineParser
 import SrcLoc
 import Data.List
 import CmdLineParser
+import FastString
 
 import ErrUtils         ( debugTraceMsg, putMsg )
 
 
 import ErrUtils         ( debugTraceMsg, putMsg )
 
index 50b4501..59535f0 100644 (file)
@@ -45,6 +45,7 @@ import Maybes         ( expectJust )
 import ParserCoreUtils ( getCoreModuleName )
 import SrcLoc          ( unLoc )
 import SrcLoc          ( Located(..) )
 import ParserCoreUtils ( getCoreModuleName )
 import SrcLoc          ( unLoc )
 import SrcLoc          ( Located(..) )
+import FastString
 
 import Control.Exception as Exception
 import Data.IORef      ( readIORef, writeIORef, IORef )
 
 import Control.Exception as Exception
 import Data.IORef      ( readIORef, writeIORef, IORef )
index 3645e08..7fc2c9a 100644 (file)
@@ -60,8 +60,6 @@ module DynFlags (
     compilerInfo,
   ) where
 
     compilerInfo,
   ) where
 
--- XXX This define is a bit of a hack, and should be done more nicely
-#define FAST_STRING_NOT_NEEDED 1
 #include "HsVersions.h"
 
 import Module
 #include "HsVersions.h"
 
 import Module
index 455b3bf..9ce02a3 100644 (file)
@@ -28,8 +28,6 @@ module ErrUtils (
        debugTraceMsg,  
     ) where
 
        debugTraceMsg,  
     ) where
 
--- XXX This define is a bit of a hack, and should be done more nicely
-#define FAST_STRING_NOT_NEEDED 1
 #include "HsVersions.h"
 
 import Bag             ( Bag, bagToList, isEmptyBag, emptyBag )
 #include "HsVersions.h"
 
 import Bag             ( Bag, bagToList, isEmptyBag, emptyBag )
index 0caa1cb..bd6eee6 100644 (file)
@@ -266,6 +266,7 @@ import BasicTypes
 import Maybes          ( expectJust, mapCatMaybes )
 import HaddockParse
 import HaddockLex       ( tokenise )
 import Maybes          ( expectJust, mapCatMaybes )
 import HaddockParse
 import HaddockLex       ( tokenise )
+import FastString
 
 import Control.Concurrent
 import System.Directory ( getModificationTime, doesFileExist,
 
 import Control.Concurrent
 import System.Directory ( getModificationTime, doesFileExist,
index 52e396d..e717bfe 100644 (file)
@@ -6,8 +6,6 @@
 \begin{code}
 module HscStats ( ppSourceStats ) where
 
 \begin{code}
 module HscStats ( ppSourceStats ) where
 
--- XXX This define is a bit of a hack, and should be done more nicely
-#define FAST_STRING_NOT_NEEDED 1
 #include "HsVersions.h"
 
 import HsSyn
 #include "HsVersions.h"
 
 import HsSyn
index 07c7568..ec87262 100644 (file)
@@ -112,7 +112,7 @@ import BreakArray
 import SrcLoc          ( SrcSpan, Located )
 import LazyUniqFM              ( lookupUFM, eltsUFM, emptyUFM )
 import UniqSupply      ( UniqSupply )
 import SrcLoc          ( SrcSpan, Located )
 import LazyUniqFM              ( lookupUFM, eltsUFM, emptyUFM )
 import UniqSupply      ( UniqSupply )
-import FastString      ( FastString )
+import FastString
 import StringBuffer    ( StringBuffer )
 
 import System.FilePath
 import StringBuffer    ( StringBuffer )
 
 import System.FilePath
index c070ca2..80488ec 100644 (file)
@@ -22,10 +22,6 @@ import Distribution.Package
 import Distribution.Version
 import Distribution.Compat.ReadP ( readP_to_S )
 
 import Distribution.Version
 import Distribution.Compat.ReadP ( readP_to_S )
 
--- warning suppression
-_unused :: FS.FastString
-_unused = FSLIT("")
-
 -- -----------------------------------------------------------------------------
 -- Our PackageConfig type is just InstalledPackageInfo from Cabal.  Later we
 -- might need to extend it with some GHC-specific stuff, but for now it's fine.
 -- -----------------------------------------------------------------------------
 -- Our PackageConfig type is just InstalledPackageInfo from Cabal.  Later we
 -- might need to extend it with some GHC-specific stuff, but for now it's fine.
index e57122b..0609660 100644 (file)
@@ -27,6 +27,7 @@ import TcType
 import Var
 import Name
 import Outputable
 import Var
 import Name
 import Outputable
+import FastString
 
 -- -----------------------------------------------------------------------------
 -- Pretty-printing entities that we get from the GHC API
 
 -- -----------------------------------------------------------------------------
 -- Pretty-printing entities that we get from the GHC API
index 7200c35..a2362d9 100644 (file)
@@ -75,7 +75,7 @@ module StaticFlags (
 
 import CmdLineParser
 import Config
 
 import CmdLineParser
 import Config
-import FastString      ( FastString, mkFastString )
+import FastString
 import Util
 import Maybes          ( firstJust )
 import Panic
 import Util
 import Maybes          ( firstJust )
 import Panic
index 576c3fc..97a5ea7 100644 (file)
@@ -74,7 +74,7 @@ import CString                ( CString, peekCString )
 
 import System.Process  ( runInteractiveProcess, getProcessExitCode )
 import Control.Concurrent( forkIO, newChan, readChan, writeChan )
 
 import System.Process  ( runInteractiveProcess, getProcessExitCode )
 import Control.Concurrent( forkIO, newChan, readChan, writeChan )
-import FastString       ( mkFastString )
+import FastString
 import SrcLoc           ( SrcLoc, mkSrcLoc, noSrcSpan, mkSrcSpan )
 \end{code}
 
 import SrcLoc           ( SrcLoc, mkSrcLoc, noSrcSpan, mkSrcSpan )
 \end{code}
 
index ca02122..64f3498 100644 (file)
@@ -45,9 +45,6 @@ import FastBool hiding ( fastOr )
 import Data.List       ( partition )
 import Data.Maybe      ( isJust )
 import Data.IORef      ( IORef, readIORef, writeIORef )
 import Data.List       ( partition )
 import Data.Maybe      ( isJust )
 import Data.IORef      ( IORef, readIORef, writeIORef )
-
-_dummy :: FS.FastString
-_dummy = FSLIT("")
 \end{code}
 
 
 \end{code}
 
 
index 7d13f11..8cd797d 100644 (file)
@@ -76,6 +76,7 @@ import qualified Outputable
 
 import Panic            ( panic )
 import DynFlags
 
 import Panic            ( panic )
 import DynFlags
+import FastString
 
 
 -- The most important function here is cmmMakeDynamicReference.
 
 
 -- The most important function here is cmmMakeDynamicReference.
index 4b023c5..14d7eba 100644 (file)
@@ -101,6 +101,7 @@ import UniqFM
 import UniqSupply
 import Outputable
 import State
 import UniqSupply
 import Outputable
 import State
+import FastString
 
 import Data.Maybe
 import Data.List
 
 import Data.Maybe
 import Data.List
index 9ee9897..6bee0c8 100644 (file)
@@ -46,6 +46,7 @@ import UniqFM
 import UniqSupply
 import Bag
 import State
 import UniqSupply
 import Bag
 import State
+import FastString
 
 import Data.List
 import Data.Maybe
 
 import Data.List
 import Data.Maybe
index e97a241..5013078 100644 (file)
@@ -26,7 +26,7 @@ module ForeignCall (
 
 #include "HsVersions.h"
 
 
 #include "HsVersions.h"
 
-import FastString      ( FastString, unpackFS )
+import FastString
 import Char            ( isAlphaNum )
 import Binary
 import Outputable
 import Char            ( isAlphaNum )
 import Binary
 import Outputable
index 9aa837d..6b02116 100644 (file)
@@ -68,7 +68,7 @@ import SrcLoc
 import Unique          ( mkAlphaTyVarUnique, pprUnique )
 import PrelNames
 import StaticFlags
 import Unique          ( mkAlphaTyVarUnique, pprUnique )
 import PrelNames
 import StaticFlags
-import FastString      ( FastString, mkFastString )
+import FastString
 import Outputable
 
 import Char            ( ord, chr )
 import Outputable
 
 import Char            ( ord, chr )
index e4d199c..a254a08 100644 (file)
@@ -25,8 +25,6 @@ This is now a sort-of-normal STG-to-STG pass (WDP 94/06), run by stg2stg.
 \begin{code}
 module SCCfinal ( stgMassageForProfiling ) where
 
 \begin{code}
 module SCCfinal ( stgMassageForProfiling ) where
 
--- XXX This define is a bit of a hack, and should be done more nicely
-#define FAST_STRING_NOT_NEEDED 1
 #include "HsVersions.h"
 
 import StgSyn
 #include "HsVersions.h"
 
 import StgSyn
index 638e955..e27be3d 100644 (file)
@@ -60,6 +60,7 @@ import BasicTypes     ( RecFlag(..) )
 import Digraph         ( SCC(..), stronglyConnComp )
 import Bag
 import Outputable
 import Digraph         ( SCC(..), stronglyConnComp )
 import Bag
 import Outputable
+import FastString
 import Maybes          ( orElse )
 import Util            ( filterOut )
 import Monad           ( foldM, unless )
 import Maybes          ( orElse )
 import Util            ( filterOut )
 import Monad           ( foldM, unless )
index b9e491e..d01c5b7 100644 (file)
@@ -49,6 +49,7 @@ import ErrUtils
 import BasicTypes      ( DeprecTxt, Fixity )
 import DriverPhases    ( isHsBoot )
 import Util
 import BasicTypes      ( DeprecTxt, Fixity )
 import DriverPhases    ( isHsBoot )
 import Util
+import FastString
 import ListSetOps
 import Data.List        ( partition, concatMap, (\\), delete )
 import IO              ( openFile, IOMode(..) )
 import ListSetOps
 import Data.List        ( partition, concatMap, (\\), delete )
 import IO              ( openFile, IOMode(..) )
index 741440f..70c9957 100644 (file)
@@ -49,6 +49,7 @@ import NameEnv
 import LazyUniqFM
 import OccName 
 import Outputable
 import LazyUniqFM
 import OccName 
 import Outputable
+import FastString
 import SrcLoc          ( Located(..), unLoc, noLoc )
 import DynFlags        ( DynFlag(..) )
 import Maybe            ( isNothing )
 import SrcLoc          ( Located(..), unLoc, noLoc )
 import DynFlags        ( DynFlag(..) )
 import Maybe            ( isNothing )
index 3de4345..0e58a59 100644 (file)
@@ -31,6 +31,7 @@ import NameSet
 import BasicTypes      ( compareFixity, funTyFixity, negateFixity, 
                          Fixity(..), FixityDirection(..) )
 import Outputable
 import BasicTypes      ( compareFixity, funTyFixity, negateFixity, 
                          Fixity(..), FixityDirection(..) )
 import Outputable
+import FastString
 
 #include "HsVersions.h"
 \end{code}
 
 #include "HsVersions.h"
 \end{code}
index 93b0b8d..38c1f58 100644 (file)
@@ -23,6 +23,7 @@ import StaticFlags    ( opt_PprStyle_Debug )
 import BasicTypes      ( isAlwaysActive )
 import Util            ( lengthExceeds )
 import UniqFM
 import BasicTypes      ( isAlwaysActive )
 import Util            ( lengthExceeds )
 import UniqFM
+import FastString
 
 import Data.List
 \end{code}
 
 import Data.List
 \end{code}
index e6e8b7a..4179774 100644 (file)
@@ -31,6 +31,7 @@ import SetLevels      ( Level(..), LevelledExpr, LevelledBind,
 import UniqSupply       ( UniqSupply )
 import List            ( partition )
 import Outputable
 import UniqSupply       ( UniqSupply )
 import List            ( partition )
 import Outputable
+import FastString
 \end{code}
 
        -----------------
 \end{code}
 
        -----------------
index 7c7cf89..794217f 100644 (file)
@@ -15,8 +15,6 @@ module OccurAnal (
         occurAnalysePgm, occurAnalyseExpr
     ) where
 
         occurAnalysePgm, occurAnalyseExpr
     ) where
 
--- XXX This define is a bit of a hack, and should be done more nicely
-#define FAST_STRING_NOT_NEEDED 1
 #include "HsVersions.h"
 
 import CoreSyn
 #include "HsVersions.h"
 
 import CoreSyn
index 462a697..699ba7b 100644 (file)
@@ -66,6 +66,7 @@ import DynFlags
 import Util
 import MonadUtils
 import Outputable
 import Util
 import MonadUtils
 import Outputable
+import FastString
 
 import Data.List
 \end{code}
 
 import Data.List
 \end{code}
index d914ef3..ea5ce12 100644 (file)
@@ -43,7 +43,7 @@ import StaticFlags    ( opt_PprStyle_Debug, opt_HistorySize )
 import Unique          ( Unique )
 import Maybes          ( expectJust )
 import FiniteMap       ( FiniteMap, emptyFM, isEmptyFM, lookupFM, addToFM, plusFM_C, fmToList )
 import Unique          ( Unique )
 import Maybes          ( expectJust )
 import FiniteMap       ( FiniteMap, emptyFM, isEmptyFM, lookupFM, addToFM, plusFM_C, fmToList )
-import FastString      ( FastString )
+import FastString
 import Outputable
 import FastTypes
 
 import Outputable
 import FastTypes
 
index 060d346..6d22505 100644 (file)
@@ -58,6 +58,7 @@ import BasicTypes
 import Util
 import MonadUtils
 import Outputable
 import Util
 import MonadUtils
 import Outputable
+import FastString
 
 import List( nub )
 \end{code}
 
 import List( nub )
 \end{code}
index d41de74..27d2c54 100644 (file)
@@ -34,6 +34,7 @@ import BasicTypes       ( TopLevelFlag(..), isTopLevel,
 import Maybes           ( orElse )
 import Data.List        ( mapAccumL )
 import Outputable
 import Maybes           ( orElse )
 import Data.List        ( mapAccumL )
 import Outputable
+import FastString
 \end{code}
 
 
 \end{code}
 
 
index 1a17c06..989fa4c 100644 (file)
@@ -16,8 +16,6 @@ bindings have no CAF references, and record the fact in their IdInfo.
 
 module SRT( computeSRTs ) where
 
 
 module SRT( computeSRTs ) where
 
--- XXX This define is a bit of a hack, and should be done more nicely
-#define FAST_STRING_NOT_NEEDED 1
 #include "HsVersions.h"
 
 import StgSyn
 #include "HsVersions.h"
 
 import StgSyn
index e0d13c6..e31415b 100644 (file)
@@ -6,8 +6,6 @@
 \begin{code}
 module SimplStg ( stg2stg ) where
 
 \begin{code}
 module SimplStg ( stg2stg ) where
 
--- XXX This define is a bit of a hack, and should be done more nicely
-#define FAST_STRING_NOT_NEEDED 1
 #include "HsVersions.h"
 
 import StgSyn
 #include "HsVersions.h"
 
 import StgSyn
index bca2bbb..25c988d 100644 (file)
@@ -30,8 +30,6 @@ The program gather statistics about
 
 module StgStats ( showStgStats ) where
 
 
 module StgStats ( showStgStats ) where
 
--- XXX This define is a bit of a hack, and should be done more nicely
-#define FAST_STRING_NOT_NEEDED 1
 #include "HsVersions.h"
 
 import StgSyn
 #include "HsVersions.h"
 
 import StgSyn
index d03412a..dbb785b 100644 (file)
@@ -39,6 +39,7 @@ import StaticFlags    ( opt_RuntimeTypes )
 import Module
 import Outputable
 import MonadUtils
 import Module
 import Outputable
 import MonadUtils
+import FastString
 import Util
 \end{code}
 
 import Util
 \end{code}
 
index 9dc83cd..23e8f3b 100644 (file)
@@ -34,6 +34,7 @@ import TyCon            ( isAlgTyCon, isNewTyCon, tyConDataCons )
 import Util             ( zipEqual, equalLength )
 import SrcLoc           ( srcLocSpan )
 import Outputable
 import Util             ( zipEqual, equalLength )
 import SrcLoc           ( srcLocSpan )
 import Outputable
+import FastString
 import Control.Monad
 \end{code}
 
 import Control.Monad
 \end{code}
 
index 893358b..42bcabb 100644 (file)
@@ -67,6 +67,7 @@ import Unique         ( Unique )
 import Bitmap
 import StaticFlags     ( opt_SccProfilingOn )
 import Module
 import Bitmap
 import StaticFlags     ( opt_SccProfilingOn )
 import Module
+import FastString
 \end{code}
 
 %************************************************************************
 \end{code}
 
 %************************************************************************
index 5f63a48..4254d35 100644 (file)
@@ -28,6 +28,7 @@ import UniqSupply
 import Unique
 import Util            ( zipWithEqual, notNull )
 import Outputable
 import Unique
 import Util            ( zipWithEqual, notNull )
 import Outputable
+import FastString
 import List            ( zipWith4 )
 \end{code}
 
 import List            ( zipWith4 )
 \end{code}
 
index ca5a7e9..224a960 100644 (file)
@@ -27,6 +27,7 @@ import SrcLoc
 import Outputable
 import LazyUniqFM
 import FiniteMap
 import Outputable
 import LazyUniqFM
 import FiniteMap
+import FastString
 
 import Maybe
 import Monad
 
 import Maybe
 import Monad
index d507bdd..91e409f 100644 (file)
@@ -60,7 +60,7 @@ module Inst (
 import {-# SOURCE #-}  TcExpr( tcPolyExpr )
 import {-# SOURCE #-}  TcUnify( boxyUnify, unifyType )
 
 import {-# SOURCE #-}  TcExpr( tcPolyExpr )
 import {-# SOURCE #-}  TcUnify( boxyUnify, unifyType )
 
-import FastString(FastString)
+import FastString
 import HsSyn
 import TcHsSyn
 import TcRnMonad
 import HsSyn
 import TcHsSyn
 import TcRnMonad
index 90a5e88..11daed7 100644 (file)
@@ -40,6 +40,7 @@ import Type
 
 import SrcLoc
 import Outputable
 
 import SrcLoc
 import Outputable
+import FastString
 import Util
 
 import Control.Monad
 import Util
 
 import Control.Monad
index e3bd657..d9f5587 100644 (file)
@@ -56,6 +56,7 @@ import List
 import Util
 import BasicTypes
 import Outputable
 import Util
 import BasicTypes
 import Outputable
+import FastString
 
 import Control.Monad
 \end{code}
 
 import Control.Monad
 \end{code}
index 9da5d96..ad5e9b8 100644 (file)
@@ -29,6 +29,7 @@ import DynFlags
 import SrcLoc
 import Maybe
 import Outputable
 import SrcLoc
 import Maybe
 import Outputable
+import FastString
 \end{code}
 
 \begin{code}
 \end{code}
 
 \begin{code}
index 7422c6f..2edd836 100644 (file)
@@ -46,6 +46,7 @@ import SrcLoc
 import Util
 import ListSetOps
 import Outputable
 import Util
 import ListSetOps
 import Outputable
+import FastString
 import Bag
 \end{code}
 
 import Bag
 \end{code}
 
index ad45c7c..aa27a43 100644 (file)
@@ -81,6 +81,7 @@ import HscTypes
 import SrcLoc
 import Outputable
 import Maybes
 import SrcLoc
 import Outputable
 import Maybes
+import FastString
 \end{code}
 
 
 \end{code}
 
 
index dc62206..0353f1f 100644 (file)
@@ -49,6 +49,7 @@ import Outputable
 import SrcLoc
 import Bag
 import Unique
 import SrcLoc
 import Bag
 import Unique
+import FastString
 \end{code}
 
 \begin{code}
 \end{code}
 
 \begin{code}
index 48b2b06..e45d6bd 100644 (file)
@@ -41,6 +41,7 @@ import Outputable
 import TcType
 import Unique
 import UniqFM
 import TcType
 import Unique
 import UniqFM
+import FastString
 \end{code}
 
 
 \end{code}
 
 
index 7bb1d5e..7afd9e8 100644 (file)
@@ -57,6 +57,7 @@ import SrcLoc
 import Util
 import Bag
 import Outputable
 import Util
 import Bag
 import Outputable
+import FastString
 \end{code}
 
 \begin{code}
 \end{code}
 
 \begin{code}
index 66102a6..08f4f7f 100644 (file)
@@ -53,6 +53,7 @@ import BasicTypes
 import SrcLoc
 import UniqSupply
 import Outputable
 import SrcLoc
 import UniqSupply
 import Outputable
+import FastString
 
 import Control.Monad
 \end{code}
 
 import Control.Monad
 \end{code}
index 30917ef..fc434d8 100644 (file)
@@ -88,6 +88,7 @@ import ListSetOps
 import UniqSupply
 import SrcLoc
 import Outputable
 import UniqSupply
 import SrcLoc
 import Outputable
+import FastString
 
 import Control.Monad   ( when, unless )
 import Data.List       ( (\\) )
 
 import Control.Monad   ( when, unless )
 import Data.List       ( (\\) )
index b7262d6..5826eb9 100644 (file)
@@ -42,6 +42,7 @@ import TysPrim
 import Outputable
 import Util
 import SrcLoc
 import Outputable
 import Util
 import SrcLoc
+import FastString
 
 import Control.Monad
 \end{code}
 
 import Control.Monad
 \end{code}
index 98bb936..a33faa1 100644 (file)
@@ -74,6 +74,7 @@ import Bag
 import Outputable
 import ListSetOps
 import FiniteMap
 import Outputable
 import ListSetOps
 import FiniteMap
+import FastString
 
 import Data.Maybe
 import Data.List
 
 import Data.Maybe
 import Data.List
index a0774fe..50ad098 100644 (file)
@@ -30,6 +30,7 @@ import Id
 import Name
 import SrcLoc
 import Outputable
 import Name
 import SrcLoc
 import Outputable
+import FastString
 \end{code}
 
 \begin{code}
 \end{code}
 
 \begin{code}
index 63529c1..a5ce732 100644 (file)
@@ -64,6 +64,7 @@ import Util
 import UniqSet
 import SrcLoc
 import DynFlags
 import UniqSet
 import SrcLoc
 import DynFlags
+import FastString
 
 import Control.Monad
 import Data.List
 
 import Control.Monad
 import Data.List
index 054f58b..12fb28d 100644 (file)
@@ -51,6 +51,7 @@ import SrcLoc
 import ListSetOps
 import Digraph
 import DynFlags
 import ListSetOps
 import Digraph
 import DynFlags
+import FastString
 
 import Data.List
 import Control.Monad    ( mplus )
 
 import Data.List
 import Control.Monad    ( mplus )
index 36ff1bb..625d4cd 100644 (file)
@@ -35,6 +35,7 @@ import Bag
 import Outputable
 import SrcLoc  ( Located(..) )
 import Maybes
 import Outputable
 import SrcLoc  ( Located(..) )
 import Maybes
+import FastString
 
 -- standard
 import Data.List
 
 -- standard
 import Data.List
index c263660..95d8deb 100644 (file)
@@ -165,6 +165,7 @@ import Util
 import Maybes
 import ListSetOps
 import Outputable
 import Maybes
 import ListSetOps
 import Outputable
+import FastString
 
 import Data.List
 import Data.IORef
 
 import Data.List
 import Data.IORef
index 4aa9b3d..d7399f5 100644 (file)
@@ -60,6 +60,7 @@ import BasicTypes
 import Util
 import Outputable
 import Unique
 import Util
 import Outputable
 import Unique
+import FastString
 
 import Control.Monad
 \end{code}
 
 import Control.Monad
 \end{code}
index 051bef1..2f946d8 100644 (file)
@@ -27,6 +27,7 @@ import Name
 import BasicTypes
 import Unique
 import Outputable
 import BasicTypes
 import Unique
 import Outputable
+import FastString
 \end{code}
 
 %************************************************************************
 \end{code}
 
 %************************************************************************
index 9ebd00e..674e2a7 100644 (file)
@@ -70,7 +70,7 @@ import Util
 import Unique
 import BasicTypes
 import Outputable
 import Unique
 import BasicTypes
 import Outputable
-
+import FastString
 
 type Coercion     = Type
 type CoercionKind = Kind       -- A CoercionKind is always of form (ty1 :=: ty2)
 
 type Coercion     = Type
 type CoercionKind = Kind       -- A CoercionKind is always of form (ty1 :=: ty2)
@@ -438,7 +438,7 @@ unsafeCoercionTyCon
 --------------------------------------
 -- ...and their names
 
 --------------------------------------
 -- ...and their names
 
-mkCoConName :: FS.FastString -> Unique -> TyCon -> Name
+mkCoConName :: FastString -> Unique -> TyCon -> Name
 mkCoConName occ key coCon = mkWiredInName gHC_PRIM (mkOccNameFS tcName occ)
                             key (ATyCon coCon) BuiltInSyntax
 
 mkCoConName occ key coCon = mkWiredInName gHC_PRIM (mkOccNameFS tcName occ)
                             key (ATyCon coCon) BuiltInSyntax
 
index 3bfe55d..396c844 100644 (file)
@@ -37,6 +37,7 @@ import UniqFM
 import Outputable
 import Maybes
 import Util
 import Outputable
 import Maybes
 import Util
+import FastString
 
 import Maybe
 \end{code}
 
 import Maybe
 \end{code}
index ac5c0a0..26c0d68 100644 (file)
@@ -27,6 +27,8 @@ import VarSet
 import VarEnv
 import Outputable
 import Util
 import VarEnv
 import Outputable
 import Util
+import FastString
+
 import Data.Maybe      ( isJust )
 \end{code}
 
 import Data.Maybe      ( isJust )
 \end{code}
 
index 8fd3d83..68a86aa 100644 (file)
@@ -33,6 +33,7 @@ import Outputable
 import BasicTypes
 import UniqFM
 import Id
 import BasicTypes
 import UniqFM
 import Id
+import FastString
 
 import Data.Maybe      ( isJust, isNothing )
 \end{code}
 
 import Data.Maybe      ( isJust, isNothing )
 \end{code}
index d5c00e8..686bba8 100644 (file)
@@ -130,6 +130,7 @@ import TyCon
 import StaticFlags
 import Util
 import Outputable
 import StaticFlags
 import Util
 import Outputable
+import FastString
 
 import Data.List
 import Data.Maybe      ( isJust )
 
 import Data.List
 import Data.Maybe      ( isJust )
index 63c64f0..63089b6 100644 (file)
@@ -13,8 +13,6 @@ module Unify (
        dataConCannotMatch
    ) where
 
        dataConCannotMatch
    ) where
 
--- XXX This define is a bit of a hack, and should be done more nicely
-#define FAST_STRING_NOT_NEEDED 1
 #include "HsVersions.h"
 
 import Var
 #include "HsVersions.h"
 
 import Var
index c36e705..6d1d8d4 100644 (file)
@@ -24,8 +24,6 @@ module Digraph(
         bcc
     ) where
 
         bcc
     ) where
 
--- XXX This define is a bit of a hack, and should be done more nicely
-#define FAST_STRING_NOT_NEEDED 1
 #include "HsVersions.h"
 
 ------------------------------------------------------------------------------
 #include "HsVersions.h"
 
 ------------------------------------------------------------------------------
index 2943768..f2659e6 100644 (file)
@@ -23,7 +23,6 @@ module Encoding (
        zDecodeString
   ) where
 
        zDecodeString
   ) where
 
-#define COMPILING_FAST_STRING
 #include "HsVersions.h"
 import Foreign
 import Data.Char       ( ord, chr, isDigit, digitToInt, intToDigit,
 #include "HsVersions.h"
 import Foreign
 import Data.Char       ( ord, chr, isDigit, digitToInt, intToDigit,
index 5d8ff23..aca5344 100644 (file)
@@ -12,7 +12,6 @@ module FastFunctions (
     global, Global
   ) where
 
     global, Global
   ) where
 
-#define COMPILING_FAST_STRING
 #include "HsVersions.h"
 
 import FastTypes
 #include "HsVersions.h"
 
 import FastTypes
index 2448f16..4417c08 100644 (file)
@@ -71,9 +71,6 @@ module FastString
         ptrStrLength
        ) where
 
         ptrStrLength
        ) where
 
--- This #define suppresses the "import FastString" that
--- HsVersions otherwise produces
-#define COMPILING_FAST_STRING
 #include "HsVersions.h"
 
 import Encoding
 #include "HsVersions.h"
 
 import Encoding
index 71a317b..a69ab25 100644 (file)
@@ -39,7 +39,6 @@ module FastTypes (
     FastPtr, pBox, pUnbox, castFastPtr
   ) where
 
     FastPtr, pBox, pUnbox, castFastPtr
   ) where
 
-#define COMPILING_FAST_STRING
 #include "HsVersions.h"
 
 #if defined(__GLASGOW_HASKELL__)
 #include "HsVersions.h"
 
 #if defined(__GLASGOW_HASKELL__)
index 8d96b19..03545eb 100644 (file)
@@ -111,6 +111,6 @@ rev_app :: [a] -> [a] -> [a]
 rev_app [] xs = xs
 rev_app (y:ys) xs = rev_app ys (y:xs)
 
 rev_app [] xs = xs
 rev_app (y:ys) xs = rev_app ys (y:xs)
 
-          
-_unused :: FS.FastString
+_unused :: ()
 _unused = undefined i_min i_lim overlaps contains
 _unused = undefined i_min i_lim overlaps contains
+
index ffd3b67..f79ffce 100644 (file)
@@ -22,8 +22,6 @@ module Panic
      installSignalHandlers, interruptTargetThread
    ) where
 
      installSignalHandlers, interruptTargetThread
    ) where
 
--- XXX This define is a bit of a hack, and should be done more nicely
-#define FAST_STRING_NOT_NEEDED 1
 #include "HsVersions.h"
 
 import Config
 #include "HsVersions.h"
 
 import Config
index 862ca58..4081017 100644 (file)
@@ -839,7 +839,3 @@ use_snd :: a -> b -> b
 use_snd _ b = b
 \end{code}
 
 use_snd _ b = b
 \end{code}
 
-\begin{code}
-_unused :: FS.FastString
-_unused = undefined
-\end{code}
index 9537ae1..1d11b90 100644 (file)
@@ -74,8 +74,6 @@ module Util (
         Direction(..), reslash,
     ) where
 
         Direction(..), reslash,
     ) where
 
--- XXX This define is a bit of a hack, and should be done more nicely
-#define FAST_STRING_NOT_NEEDED 1
 #include "HsVersions.h"
 
 import Panic
 #include "HsVersions.h"
 
 import Panic
index 34ffdb7..de83279 100644 (file)
@@ -11,8 +11,6 @@ module VectCore (
   vCaseDEFAULT, vCaseProd
 ) where
 
   vCaseDEFAULT, vCaseProd
 ) where
 
--- XXX This define is a bit of a hack, and should be done more nicely
-#define FAST_STRING_NOT_NEEDED 1
 #include "HsVersions.h"
 
 import CoreSyn
 #include "HsVersions.h"
 
 import CoreSyn
index 86dcaf2..cfcea38 100644 (file)
@@ -45,6 +45,7 @@ import Util              ( singleton )
 import Digraph           ( SCC(..), stronglyConnComp )
 
 import Outputable
 import Digraph           ( SCC(..), stronglyConnComp )
 
 import Outputable
+import FastString
 
 import Control.Monad  ( liftM, liftM2, zipWithM, zipWithM_, mapAndUnzipM )
 import Data.List      ( inits, tails, zipWith4, zipWith5 )
 
 import Control.Monad  ( liftM, liftM2, zipWithM, zipWithM_, mapAndUnzipM )
 import Data.List      ( inits, tails, zipWith4, zipWith5 )