X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Futils%2FFastString.lhs;h=c6dac8ff428d083c2a38a73ec28bd0dd30862993;hp=8fcd419a2a8fa883065503f9a6aac253e16aa06d;hb=edc0bafd3fcd01b85a2e8894e5dfe149eb0e0857;hpb=f278f0676579f67075033a4f9857715909c4b71e diff --git a/compiler/utils/FastString.lhs b/compiler/utils/FastString.lhs index 8fcd419..c6dac8f 100644 --- a/compiler/utils/FastString.lhs +++ b/compiler/utils/FastString.lhs @@ -2,6 +2,7 @@ % (c) The University of Glasgow, 1997-2006 % \begin{code} +{-# LANGUAGE BangPatterns #-} {-# OPTIONS -fno-warn-unused-imports #-} -- XXX GHC 6.9 seems to be confused by unpackCString# being used only in -- a RULE @@ -95,7 +96,7 @@ import FastFunctions import Panic import Util -import Foreign +import Foreign hiding ( unsafePerformIO ) import Foreign.C import GHC.Exts import System.IO @@ -105,11 +106,7 @@ import Data.IORef ( IORef, newIORef, readIORef, writeIORef ) import Data.Maybe ( isJust ) import Data.Char ( ord ) -#if __GLASGOW_HASKELL__ >= 611 import GHC.IO ( IO(..) ) -#else -import GHC.IOBase ( IO(..) ) -#endif import GHC.Ptr ( Ptr(..) ) #if defined(__GLASGOW_HASKELL__)