Commit 6f2d9649 authored by Mikhail Glushenkov's avatar Mikhail Glushenkov
Browse files

'cabal repl': require Cabal version to be >= 1.18.

Fixes #1478.
parent c1cc5200
......@@ -112,6 +112,8 @@ import Distribution.Text
( display )
import Distribution.Verbosity as Verbosity
( Verbosity, normal )
import Distribution.Version
( Version(..), orLaterVersion )
import qualified Paths_cabal_install (version)
import System.Environment (getArgs, getProgName)
......@@ -309,7 +311,10 @@ replAction replFlags extraArgs globalFlags = do
maybeWithSandboxDirOnSearchPath useSandbox $
let progConf = defaultProgramConfiguration
setupOptions = defaultSetupScriptOptions { useDistPref = distPref }
setupOptions = defaultSetupScriptOptions
{ useCabalVersion = orLaterVersion $ Version [1,18,0] []
, useDistPref = distPref
}
replFlags' = replFlags
{ replVerbosity = toFlag verbosity
, replDistPref = toFlag distPref
......
Supports Markdown
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