projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add GenCmmGraph, which is a generic version of CmmGraph.
[ghc-hetmet.git]
/
compiler
/
utils
/
FastFunctions.lhs
diff --git
a/compiler/utils/FastFunctions.lhs
b/compiler/utils/FastFunctions.lhs
index
5d8ff23
..
5496ed0
100644
(file)
--- a/
compiler/utils/FastFunctions.lhs
+++ b/
compiler/utils/FastFunctions.lhs
@@
-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
@@
-23,18
+22,9
@@
import System.IO.Unsafe
import GHC.Exts
import GHC.Word
import GHC.Exts
import GHC.Word
-import GHC.IOBase (IO(..))
---why not import it at __GLASGOW_HASKELL__==606 ?
-#if __GLASGOW_HASKELL__ >= 607
-import GHC.IOBase (unsafeDupableInterleaveIO)
-#endif
+import GHC.IO (IO(..), unsafeDupableInterleaveIO)
import GHC.Base (unsafeChr)
import GHC.Base (unsafeChr)
-#if __GLASGOW_HASKELL__ < 607
-unsafeDupableInterleaveIO :: IO a -> IO a
-unsafeDupableInterleaveIO = unsafeInterleaveIO
-#endif
-
-- Just like unsafePerformIO, but we inline it.
{-# INLINE inlinePerformIO #-}
inlinePerformIO :: IO a -> a
-- Just like unsafePerformIO, but we inline it.
{-# INLINE inlinePerformIO #-}
inlinePerformIO :: IO a -> a