Skip to content
Snippets Groups Projects
Commit 0a8a6432 authored by Ross Paterson's avatar Ross Paterson
Browse files

Hugs only: avoid dependency cycle

parent 880cb6cd
No related branches found
No related tags found
No related merge requests found
......@@ -118,6 +118,9 @@ import Data.Maybe
import GHC.IOBase
import GHC.Num
import GHC.Base
#elif __HUGS__
import Hugs.Prelude ( Handle, IOError, ioError )
import System.IO.Unsafe ( unsafePerformIO )
#else
import System.IO ( Handle )
import System.IO.Error ( IOError, ioError )
......
......@@ -32,18 +32,19 @@ import Foreign.C
import Data.Bits
import Data.Maybe
#ifdef __GLASGOW_HASKELL__
#if __GLASGOW_HASKELL__
import GHC.Base
import GHC.Num
import GHC.Real
import GHC.IOBase
#elif __HUGS__
import Hugs.Prelude (IOException(..), IOErrorType(..))
import Hugs.IO (IOMode(..))
#else
import System.IO
#endif
#ifdef __HUGS__
import Hugs.Prelude (IOException(..), IOErrorType(..))
{-# CFILES cbits/PrelIOUtils.c cbits/dirUtils.c cbits/consUtils.c #-}
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment