aboutsummaryrefslogtreecommitdiff
path: root/CabalHelper/Compiletime/Wrapper.hs
diff options
context:
space:
mode:
authorDaniel Gröber <dxld@darkboxed.org>2017-09-25 11:10:25 +0200
committerDaniel Gröber <dxld@darkboxed.org>2017-09-25 13:11:28 +0200
commit77afb51613df5777582627e8c505fde57b0be188 (patch)
tree4fa0da681316b42286ef888ed6ab1a781867933c /CabalHelper/Compiletime/Wrapper.hs
parentb42f9095993f5862d4450a84f6cf535b7a252d48 (diff)
Add support for running Cabal's Setup.hs directly
cabal-install 1.24 broke installing older Cabal versions which use build-type:custom. See https://github.com/haskell/cabal/pull/4787. This still breaks with HEAD on GHC<8. See https://github.com/haskell/cabal/pull/4786.
Diffstat (limited to 'CabalHelper/Compiletime/Wrapper.hs')
-rw-r--r--CabalHelper/Compiletime/Wrapper.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/CabalHelper/Compiletime/Wrapper.hs b/CabalHelper/Compiletime/Wrapper.hs
index 7325654..8546e9e 100644
--- a/CabalHelper/Compiletime/Wrapper.hs
+++ b/CabalHelper/Compiletime/Wrapper.hs
@@ -80,7 +80,7 @@ globalArgSpec =
reqArg "VERSION" $ \p o -> o { cabalVersion = Just $ parseVer p }
, option "" ["with-cabal-pkg-db"] "package database to look for Cabal library in" $
- reqArg "PKG_DB" $ \p o -> o { cabalPkgDb = Just p }
+ reqArg "PKG_DB" $ \p o -> o { cabalPkgDb = Just (PackageDbDir p) }
]
where