diff options
author | Simon Marlow <marlowsd@gmail.com> | 2009-05-29 13:18:22 +0000 |
---|---|---|
committer | Simon Marlow <marlowsd@gmail.com> | 2009-05-29 13:18:22 +0000 |
commit | 1c83695b5b9ae3175c18908c1d58aeadb1f225ae (patch) | |
tree | 31d3073656ae76ac32d0a4819c9bbfc6bd82ecd6 /utils | |
parent | 2675f2b68794ef6712e1ea0b9ec110c46c9e5ebf (diff) | |
download | haskell-1c83695b5b9ae3175c18908c1d58aeadb1f225ae.tar.gz |
Changes for the new IO library, mainly base-package modules moving around
Diffstat (limited to 'utils')
-rw-r--r-- | utils/ghc-pkg/Main.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/ghc-pkg/Main.hs b/utils/ghc-pkg/Main.hs index 3babd7493d..19052a5e2c 100644 --- a/utils/ghc-pkg/Main.hs +++ b/utils/ghc-pkg/Main.hs @@ -61,7 +61,11 @@ import System.Posix hiding (fdToHandle) import IO ( isPermissionError ) import System.Posix.Internals +#if __GLASGOW_HASKELL__ >= 611 +import GHC.IO.Handle.FD (fdToHandle) +#else import GHC.Handle (fdToHandle) +#endif #if defined(GLOB) import System.Process(runInteractiveCommand) |