Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
6f2d9649
Commit
6f2d9649
authored
Sep 05, 2013
by
Mikhail Glushenkov
Browse files
'cabal repl': require Cabal version to be >= 1.18.
Fixes #1478.
parent
c1cc5200
Changes
1
Hide whitespace changes
Inline
Side-by-side
cabal-install/Main.hs
View file @
6f2d9649
...
...
@@ -111,7 +111,9 @@ import Distribution.Simple.Utils
import
Distribution.Text
(
display
)
import
Distribution.Verbosity
as
Verbosity
(
Verbosity
,
normal
)
(
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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment