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

@@ -31,7 +31,7 @@ debugInfo = cradle >>= \c -> convert' =<< do
simpleCompilerOption = options >>= \op ->
return $ CompilerOptions (ghcUserOptions op) [] []
fromCabalFile c = options >>= \opts -> do
pkgDesc <- parseCabalFile $ fromJust $ cradleCabalFile c
pkgDesc <- parseCabalFile c $ fromJust $ cradleCabalFile c
getCompilerOptions (ghcUserOptions opts) c pkgDesc
----------------------------------------------------------------