aboutsummaryrefslogtreecommitdiff
path: root/src/CabalHelper/Compiletime/Program
diff options
context:
space:
mode:
authorjneira <atreyu.bbb@gmail.com>2020-05-08 22:26:38 +0200
committerDaniel Gröber (dxld) <dxld@darkboxed.org>2020-05-10 21:39:56 +0200
commitb3287733a2e5aacc5b6b9f716dcac623f2b52e52 (patch)
tree22f88830f3ca6c5a552c0e69f298e537f35e4774 /src/CabalHelper/Compiletime/Program
parentce89f04a3211f158a754edc0d669ec1ef331041f (diff)
Use forward compatible v1 prefix if available
Diffstat (limited to 'src/CabalHelper/Compiletime/Program')
-rw-r--r--src/CabalHelper/Compiletime/Program/CabalInstall.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/CabalHelper/Compiletime/Program/CabalInstall.hs b/src/CabalHelper/Compiletime/Program/CabalInstall.hs
index 71866ae..9c8b48d 100644
--- a/src/CabalHelper/Compiletime/Program/CabalInstall.hs
+++ b/src/CabalHelper/Compiletime/Program/CabalInstall.hs
@@ -129,7 +129,9 @@ callCabalInstall
, if cabalInstallVer >= Version [1,20,0,0] []
then ["--no-require-sandbox"]
else []
- , [ "install", srcdir ]
+ , if cabalInstallVer >= Version [2,4,0,0] []
+ then [ "v1-install", srcdir ]
+ else [ "install", srcdir]
, if | ?verbose 3 -> ["-v2"]
| ?verbose 4 -> ["-v3"]
| otherwise -> []