Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
6f105093
Commit
6f105093
authored
Sep 25, 2011
by
Duncan Coutts
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a PVP-style version as the default for cabal init
parent
d83e136b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
cabal-install/Distribution/Client/Init.hs
cabal-install/Distribution/Client/Init.hs
+3
-3
No files found.
cabal-install/Distribution/Client/Init.hs
View file @
6f105093
...
...
@@ -125,11 +125,11 @@ getPackageName flags = do
return
$
flags
{
packageName
=
maybeToFlag
pkgName'
}
-- | Package version: use 0.1 as a last resort, but try prompting the user
if
-- possible.
-- | Package version: use 0.1
.0.0
as a last resort, but try prompting the user
--
if
possible.
getVersion
::
InitFlags
->
IO
InitFlags
getVersion
flags
=
do
let
v
=
Just
$
Version
{
versionBranch
=
[
0
,
1
],
versionTags
=
[]
}
let
v
=
Just
$
Version
{
versionBranch
=
[
0
,
1
,
0
,
0
],
versionTags
=
[]
}
v'
<-
return
(
flagToMaybe
$
version
flags
)
?>>
maybePrompt
flags
(
prompt
"Package version"
v
)
?>>
return
v
...
...
Write
Preview
Markdown
is supported
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