1 {-# LANGUAGE CPP, NoImplicitPrelude #-}
3 -----------------------------------------------------------------------------
5 -- Module : System.IO.Unsafe
6 -- Copyright : (c) The University of Glasgow 2001
7 -- License : BSD-style (see the file libraries/base/LICENSE)
9 -- Maintainer : libraries@haskell.org
10 -- Stability : provisional
11 -- Portability : portable
13 -- \"Unsafe\" IO operations.
15 -----------------------------------------------------------------------------
17 module System.IO.Unsafe (
18 -- * Unsafe 'System.IO.IO' operations
19 unsafePerformIO, -- :: IO a -> a
20 unsafeInterleaveIO, -- :: IO a -> IO a
23 #ifdef __GLASGOW_HASKELL__
24 import GHC.IO (unsafePerformIO, unsafeInterleaveIO)
28 import Hugs.IOExts (unsafePerformIO, unsafeInterleaveIO)
32 import NHC.Internal (unsafePerformIO, unsafeInterleaveIO)