projects
/
ghc-base.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[project @ 2002-10-09 17:24:12 by malcolm]
[ghc-base.git]
/
System
/
IO
/
Unsafe.hs
diff --git
a/System/IO/Unsafe.hs
b/System/IO/Unsafe.hs
index
9ace00c
..
98dfe2b
100644
(file)
--- a/
System/IO/Unsafe.hs
+++ b/
System/IO/Unsafe.hs
@@
-26,3
+26,10
@@
import GHC.IOBase
#ifdef __HUGS__
import Hugs.IOExts
#endif
+
+#ifdef __NHC__
+import NHC.Internal (unsafePerformIO)
+
+unsafeInterleaveIO :: IO a -> IO a
+unsafeInterleaveIO f = let x = unsafePerformIO f in return x
+#endif