Use the cabal configuration flags where possible when finalizing the PackageDescription.

This commit is contained in:
Rob Everest
2014-09-10 22:23:36 +10:00
parent 274b5d8e1c
commit 2c2e7782d2
9 changed files with 66 additions and 16 deletions

View File

@@ -204,7 +204,7 @@ initializeFlagsWithCradle opt c
cabal = isJust mCradleFile
ghcopts = ghcUserOptions opt
withCabal = do
pkgDesc <- parseCabalFile $ fromJust mCradleFile
pkgDesc <- parseCabalFile c $ fromJust mCradleFile
compOpts <- getCompilerOptions ghcopts c pkgDesc
initSession CabalPkg opt compOpts
withSandbox = initSession SingleFile opt compOpts