projects
/
ghc-base.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add GHC.HetMet.{hetmet_kappa,hetmet_kappa_app}
[ghc-base.git]
/
System
/
IO
/
Unsafe.hs
diff --git
a/System/IO/Unsafe.hs
b/System/IO/Unsafe.hs
index
e72713c
..
3ef3d9f
100644
(file)
--- a/
System/IO/Unsafe.hs
+++ b/
System/IO/Unsafe.hs
@@
-1,4
+1,5
@@
-{-# OPTIONS_GHC -fno-implicit-prelude #-}
+{-# LANGUAGE CPP, NoImplicitPrelude #-}
+
-----------------------------------------------------------------------------
-- |
-- Module : System.IO.Unsafe
-----------------------------------------------------------------------------
-- |
-- Module : System.IO.Unsafe
@@
-15,23
+16,19
@@
module System.IO.Unsafe (
-- * Unsafe 'System.IO.IO' operations
module System.IO.Unsafe (
-- * Unsafe 'System.IO.IO' operations
- unsafePerformIO, -- :: IO a -> a
- unsafeInterleaveIO, -- :: IO a -> IO a
+ unsafePerformIO, -- :: IO a -> a
+ unsafeInterleaveIO, -- :: IO a -> IO a
) where
#ifdef __GLASGOW_HASKELL__
) where
#ifdef __GLASGOW_HASKELL__
-import GHC.IOBase (unsafePerformIO, unsafeInterleaveIO)
+import GHC.IO (unsafePerformIO, unsafeInterleaveIO)
#endif
#ifdef __HUGS__
#endif
#ifdef __HUGS__
-import Hugs.IOExts (unsafePerformIO)
+import Hugs.IOExts (unsafePerformIO, unsafeInterleaveIO)
#endif
#ifdef __NHC__
#endif
#ifdef __NHC__
-import NHC.Internal (unsafePerformIO)
+import NHC.Internal (unsafePerformIO, unsafeInterleaveIO)
#endif
#endif
-#ifndef __GLASGOW_HASKELL__
-unsafeInterleaveIO :: IO a -> IO a
-unsafeInterleaveIO f = return (unsafePerformIO f)
-#endif