Skip to content

Commit

Permalink
move imports outside ifdef GHC
Browse files Browse the repository at this point in the history
  • Loading branch information
Ross Paterson committed Jan 30, 2009
1 parent 5483e8c commit 02464cd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Distribution/Compat/CopyFile.hs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import System.IO
( openBinaryFile, IOMode(ReadMode), hClose, hGetBuf, hPutBuf )
import Foreign
( allocaBytes )
#endif /* __GLASGOW_HASKELL__ */

#ifndef mingw32_HOST_OS
import System.Posix.Types
Expand All @@ -52,9 +53,7 @@ import Foreign.C
import Foreign.C
( throwErrnoIfMinus1_ )
#endif
#endif
#endif

#endif /* mingw32_HOST_OS */

copyOrdinaryFile, copyExecutableFile :: FilePath -> FilePath -> IO ()
copyOrdinaryFile src dest = copyFile src dest >> setFileOrdinary dest
Expand Down

0 comments on commit 02464cd

Please sign in to comment.