Fix the Windows build
authorIan Lynagh <igloo@earth.li>
Sat, 21 Jul 2007 01:18:17 +0000 (01:18 +0000)
committerIan Lynagh <igloo@earth.li>
Sat, 21 Jul 2007 01:18:17 +0000 (01:18 +0000)
compat/Compat/Directory.hs

index 4d7cb4b..983f083 100644 (file)
@@ -32,6 +32,9 @@ import Foreign.Marshal.Alloc  ( allocaBytes )
 import System.IO (IOMode(..), openBinaryFile, hGetBuf, hPutBuf, hClose)
 import System.IO.Error         ( try )
 import GHC.IOBase ( IOException(..) )
+#if defined(mingw32_HOST_OS)
+import GHC.IOBase ( IOErrorType(..) )
+#endif
 #else
 import System.IO               ( try )
 #endif