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
751e5584
Commit
751e5584
authored
Oct 29, 2014
by
Mikhail Glushenkov
Browse files
Merge pull request #2188 from thomie/versionTags
Remove all references to Data.Version.versionTags
parents
7ece59b3
b271eb87
Changes
7
Hide whitespace changes
Inline
Side-by-side
Cabal/Distribution/InstalledPackageInfo.hs
View file @
751e5584
...
...
@@ -157,7 +157,7 @@ emptyInstalledPackageInfo
}
noVersion
::
Version
noVersion
=
Version
{
versionBranch
=
[]
,
versionTags
=
[]
}
noVersion
=
Version
[]
[]
-- -----------------------------------------------------------------------------
-- Module re-exports
...
...
Cabal/Distribution/ParseUtils.hs
View file @
751e5584
...
...
@@ -657,7 +657,7 @@ parseOptVersion :: ReadP r Version
parseOptVersion
=
parseQuoted
ver
<++
ver
where
ver
::
ReadP
r
Version
ver
=
parse
<++
return
noVersion
noVersion
=
Version
{
versionBranch
=
[]
,
versionTags
=
[]
}
noVersion
=
Version
[]
[]
parseTestedWithQ
::
ReadP
r
(
CompilerFlavor
,
VersionRange
)
parseTestedWithQ
=
parseQuoted
tw
<++
tw
...
...
Cabal/Distribution/Simple/Build/PathsModule.hs
View file @
751e5584
...
...
@@ -80,7 +80,8 @@ generate pkg_descr lbi =
"catchIO = Exception.catch
\n
"
++
"
\n
"
++
"
\n
version :: Version"
++
"
\n
version = "
++
show
(
packageVersion
pkg_descr
)
"
\n
version = Version "
++
show
branch
++
" "
++
show
tags
where
Version
branch
tags
=
packageVersion
pkg_descr
body
|
absolute
=
...
...
Cabal/Distribution/Simple/Configure.hs
View file @
751e5584
...
...
@@ -815,8 +815,7 @@ interpretPackageDbFlags userInstall specificDBs =
extra
dbs'
(
Just
db
:
dbs
)
=
extra
(
dbs'
++
[
db
])
dbs
newPackageDepsBehaviourMinVersion
::
Version
newPackageDepsBehaviourMinVersion
=
Version
{
versionBranch
=
[
1
,
7
,
1
],
versionTags
=
[]
}
newPackageDepsBehaviourMinVersion
=
Version
[
1
,
7
,
1
]
[]
-- In older cabal versions, there was only one set of package dependencies for
-- the whole package. In this version, we can have separate dependencies per
...
...
Cabal/Distribution/Simple/Program/Hpc.hs
View file @
751e5584
...
...
@@ -55,7 +55,7 @@ markup hpc hpcVer verbosity tixFile hpcDirs destDir excluded = do
runProgramInvocation
verbosity
(
markupInvocation
hpc
tixFile
hpcDirs'
destDir
excluded
)
where
version07
=
Version
{
versionBranch
=
[
0
,
7
],
versionTags
=
[]
}
version07
=
Version
[
0
,
7
]
[]
(
passedDirs
,
droppedDirs
)
=
splitAt
1
hpcDirs
markupInvocation
::
ConfiguredProgram
...
...
Cabal/Distribution/Version.hs
View file @
751e5584
...
...
@@ -118,7 +118,7 @@ instance Binary Version where
br
<-
get
tags
<-
get
return
$
Version
br
tags
put
v
=
put
(
versionBranch
v
)
>>
put
(
versionTags
v
)
put
(
Version
br
tags
)
=
put
br
>>
put
tags
{-# DEPRECATED AnyVersion "Use 'anyVersion', 'foldVersionRange' or 'asVersionIntervals'" #-}
{-# DEPRECATED ThisVersion "use 'thisVersion', 'foldVersionRange' or 'asVersionIntervals'" #-}
...
...
cabal-install/Distribution/Client/Init.hs
View file @
751e5584
...
...
@@ -165,7 +165,7 @@ getPackageName flags = do
-- if possible.
getVersion
::
InitFlags
->
IO
InitFlags
getVersion
flags
=
do
let
v
=
Just
$
Version
{
versionBranch
=
[
0
,
1
,
0
,
0
],
versionTags
=
[]
}
let
v
=
Just
$
Version
[
0
,
1
,
0
,
0
]
[]
v'
<-
return
(
flagToMaybe
$
version
flags
)
?>>
maybePrompt
flags
(
prompt
"Package version"
v
)
?>>
return
v
...
...
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