cab-0.2.12: A maintenance command of Haskell cabal packages

Safe HaskellSafe-Inferred

Distribution.Cab.Version

Synopsis

Documentation

data Ver Source

Package version.

Instances

toVer :: [Int] -> VerSource

Creating Ver.

>>> toVer [1,2,3]
Ver [1,2,3]

verToString :: Ver -> StringSource

From Version to String

>>> verToString $ toVer [1,2,3]
"1.2.3"

version :: Version -> VerSource

From Version in Cabal to Ver.

>>> version $ Version [1,2,3] []
Ver [1,2,3]

versionToString :: Version -> StringSource

From Version in Cabal to String.

>>> versionToString $ Version [1,2,3] []
"1.2.3"