summoner-1.2.0: Tool for scaffolding completely configured production Haskell projects.

Safe HaskellNone
LanguageHaskell2010

Summoner.GhcVer

Synopsis

Documentation

data GhcVer Source #

Represents some selected set of GHC versions.

Instances
Bounded GhcVer Source # 
Instance details

Defined in Summoner.GhcVer

Enum GhcVer Source # 
Instance details

Defined in Summoner.GhcVer

Eq GhcVer Source # 
Instance details

Defined in Summoner.GhcVer

Methods

(==) :: GhcVer -> GhcVer -> Bool #

(/=) :: GhcVer -> GhcVer -> Bool #

Ord GhcVer Source # 
Instance details

Defined in Summoner.GhcVer

Show GhcVer Source # 
Instance details

Defined in Summoner.GhcVer

data Pvp Source #

Represents PVP versioning (4 numbers).

Constructors

Pvp 
Instances
Show Pvp Source #

Show PVP version in a standard way: 1.2.3.4

Instance details

Defined in Summoner.GhcVer

Methods

showsPrec :: Int -> Pvp -> ShowS #

show :: Pvp -> String #

showList :: [Pvp] -> ShowS #

showGhcVer :: GhcVer -> Text Source #

Converts GhcVer into dot-separated string.

latestLts :: GhcVer -> Text Source #

Returns latest known LTS resolver for all GHC versions except default one.

baseVer :: GhcVer -> Text Source #

Returns corresponding base version of the given GHC version.

cabalBaseVersions :: [GhcVer] -> Text Source #

Returns the base bounds for the list of the given GHC versions.

>>> cabalBaseVersions [Ghc844]
"^>= 4.11.1.0"
>>> cabalBaseVersions [Ghc802, Ghc822, Ghc844]
">= 4.9.0.0 && < 4.12"