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
d7090ded
Commit
d7090ded
authored
Sep 05, 2013
by
Mikhail Glushenkov
Browse files
Merge pull request #1480 from 23Skidoo/issue-1478
'cabal repl': require Cabal version to be >= 1.18.
parents
c1cc5200
6f2d9649
Changes
1
Show whitespace changes
Inline
Side-by-side
cabal-install/Main.hs
View file @
d7090ded
...
...
@@ -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
...
...
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