projects
/
ghc-base.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use explicit language extensions & remove extension fields from base.cabal
[ghc-base.git]
/
System
/
IO
/
Unsafe.hs
diff --git
a/System/IO/Unsafe.hs
b/System/IO/Unsafe.hs
index
9ace00c
..
3ef3d9f
100644
(file)
--- a/
System/IO/Unsafe.hs
+++ b/
System/IO/Unsafe.hs
@@
-1,4
+1,5
@@
-{-# OPTIONS -fno-implicit-prelude #-}
+{-# LANGUAGE CPP, NoImplicitPrelude #-}
+
-----------------------------------------------------------------------------
-- |
-- Module : System.IO.Unsafe
-----------------------------------------------------------------------------
-- |
-- Module : System.IO.Unsafe
@@
-14,15
+15,20
@@
-----------------------------------------------------------------------------
module System.IO.Unsafe (
-----------------------------------------------------------------------------
module System.IO.Unsafe (
- -- * Unsafe 'IO' operations
- unsafePerformIO, -- :: IO a -> a
- unsafeInterleaveIO, -- :: IO a -> IO a
+ -- * Unsafe 'System.IO.IO' operations
+ unsafePerformIO, -- :: IO a -> a
+ unsafeInterleaveIO, -- :: IO a -> IO a
) where
#ifdef __GLASGOW_HASKELL__
) where
#ifdef __GLASGOW_HASKELL__
-import GHC.IOBase
+import GHC.IO (unsafePerformIO, unsafeInterleaveIO)
#endif
#ifdef __HUGS__
#endif
#ifdef __HUGS__
-import Hugs.IOExts
+import Hugs.IOExts (unsafePerformIO, unsafeInterleaveIO)
+#endif
+
+#ifdef __NHC__
+import NHC.Internal (unsafePerformIO, unsafeInterleaveIO)
#endif
#endif
+