Commit 7a48e6ca authored by Herbert Valerio Riedel's avatar Herbert Valerio Riedel 🕺
Browse files

Make ghc-cabal's `System.Directory` import more robust

Starting with directory-1.2.5 there will be a nameclash with
`withCurrentDirectory` and `MIN_VERSION_filepath()` isn't available at
bootstrap-time with the current GHC build-system.

By using explicit import lists we avoid CPP altogether
parent 8160f42b
...@@ -29,7 +29,7 @@ import qualified Data.ByteString.Lazy.Char8 as BS ...@@ -29,7 +29,7 @@ import qualified Data.ByteString.Lazy.Char8 as BS
import Data.List import Data.List
import Data.Maybe import Data.Maybe
import System.IO import System.IO
import System.Directory import System.Directory (setCurrentDirectory, getCurrentDirectory, doesFileExist)
import System.Environment import System.Environment
import System.Exit (exitWith, ExitCode(..)) import System.Exit (exitWith, ExitCode(..))
import System.FilePath import System.FilePath
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment