cab-0.2.19: A maintenance command of Haskell cabal packages
Safe HaskellNone
LanguageHaskell2010

Distribution.Cab.Version

Synopsis

Documentation

data Ver Source #

Package version.

Instances

Instances details
Eq Ver Source # 
Instance details

Defined in Distribution.Cab.Version

Methods

(==) :: Ver -> Ver -> Bool

(/=) :: Ver -> Ver -> Bool

Ord Ver Source # 
Instance details

Defined in Distribution.Cab.Version

Methods

compare :: Ver -> Ver -> Ordering

(<) :: Ver -> Ver -> Bool

(<=) :: Ver -> Ver -> Bool

(>) :: Ver -> Ver -> Bool

(>=) :: Ver -> Ver -> Bool

max :: Ver -> Ver -> Ver

min :: Ver -> Ver -> Ver

Read Ver Source # 
Instance details

Defined in Distribution.Cab.Version

Methods

readsPrec :: Int -> ReadS Ver

readList :: ReadS [Ver]

readPrec :: ReadPrec Ver

readListPrec :: ReadPrec [Ver]

Show Ver Source # 
Instance details

Defined in Distribution.Cab.Version

Methods

showsPrec :: Int -> Ver -> ShowS

show :: Ver -> String

showList :: [Ver] -> ShowS

toVer :: [Int] -> Ver Source #

Creating Ver.

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

toVersion :: [Int] -> Version Source #

Creating Version in Cabal.

verToString :: Ver -> String Source #

From Version to String

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

version :: Version -> Ver Source #

From Version in Cabal to Ver.

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

versionToString :: Version -> String Source #

From Version in Cabal to String.

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