X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compat%2FCompat%2FDirectory.hs;h=983f0830c0a0dbf427fc06019275863af99082f6;hb=4c77ef829d1d656f9d70842f5ef850e33b4d5d2a;hp=c44b50fd749f44a8b5ddb91a8113680ad3ac42f6;hpb=e85fc273bafab43692ee4e33a2e77144e170dca9;p=ghc-hetmet.git diff --git a/compat/Compat/Directory.hs b/compat/Compat/Directory.hs index c44b50f..983f083 100644 --- a/compat/Compat/Directory.hs +++ b/compat/Compat/Directory.hs @@ -31,7 +31,10 @@ import Control.Monad ( when ) import Foreign.Marshal.Alloc ( allocaBytes ) import System.IO (IOMode(..), openBinaryFile, hGetBuf, hPutBuf, hClose) import System.IO.Error ( try ) -import GHC.IOBase ( IOException(..), IOErrorType(..) ) +import GHC.IOBase ( IOException(..) ) +#if defined(mingw32_HOST_OS) +import GHC.IOBase ( IOErrorType(..) ) +#endif #else import System.IO ( try ) #endif