cab-0.2.0: A maintenance command of Haskell cabal packages
Distribution.Cab.Version
Synopsis
data Ver Source
Package version.
Instances
toVer :: [Int] -> VerSource
Creating Ver.
Ver
>>> toVer [1,2,3] Ver [1,2,3]
>>>
toVer [1,2,3]
verToString :: Ver -> StringSource
From Version to String
Version
String
>>> verToString $ toVer [1,2,3] "1.2.3"
verToString $ toVer [1,2,3]
version :: Version -> VerSource
From Version in Cabal to Ver.
>>> version $ Version [1,2,3] [] Ver [1,2,3]
version $ Version [1,2,3] []
versionToString :: Version -> StringSource
From Version in Cabal to String.
>>> versionToString $ Version [1,2,3] [] "1.2.3"
versionToString $ Version [1,2,3] []