projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New syntax for GADT-style record declarations, and associated refactoring
[ghc-hetmet.git]
/
compiler
/
utils
/
FastFunctions.lhs
diff --git
a/compiler/utils/FastFunctions.lhs
b/compiler/utils/FastFunctions.lhs
index
86c89bd
..
d6a282f
100644
(file)
--- 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.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)
import GHC.IOBase (unsafeDupableInterleaveIO)
+#endif
+
import GHC.Base (unsafeChr)
-- Just like unsafePerformIO, but we inline it.
import GHC.Base (unsafeChr)
-- Just like unsafePerformIO, but we inline it.