X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Futils%2FFastFunctions.lhs;h=d6a282fcbeab0b102fdc76f0c9378b062da678ed;hb=1c83695b5b9ae3175c18908c1d58aeadb1f225ae;hp=86c89bd9c73f5221d2365690c4ebd6e28397cb9d;hpb=893a3c0ad6c39caf71ac28af900733513e1f153e;p=ghc-hetmet.git diff --git a/compiler/utils/FastFunctions.lhs b/compiler/utils/FastFunctions.lhs index 86c89bd..d6a282f 100644 --- a/compiler/utils/FastFunctions.lhs +++ b/compiler/utils/FastFunctions.lhs @@ -22,8 +22,19 @@ import System.IO.Unsafe import GHC.Exts import GHC.Word -import GHC.IOBase (IO(..)) + +#if __GLASGOW_HASKELL__ >= 611 +import GHC.IO ( IO(..) ) +#else +import GHC.IOBase ( IO(..) ) +#endif + +#if __GLASGOW_HASKELL__ >= 611 +import GHC.IO (unsafeDupableInterleaveIO) +#else import GHC.IOBase (unsafeDupableInterleaveIO) +#endif + import GHC.Base (unsafeChr) -- Just like unsafePerformIO, but we inline it.