Commit 6f105093 authored by Duncan Coutts's avatar Duncan Coutts

Use a PVP-style version as the default for cabal init

parent d83e136b
......@@ -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
......
Markdown is supported
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