summoner-2.0.1.0: Tool for scaffolding fully configured batteries-included production-level Haskell projects.
Copyright(c) 2017-2019 Kowainik
LicenseMPL-2.0
MaintainerKowainik <xrom.xkov@gmail.com>
Safe HaskellNone
LanguageHaskell2010

Summoner.GhcVer

Description

Contains data type for GHC versions supported by Summoner and some useful functions for manipulation with them.

Synopsis

Documentation

data GhcVer Source #

Represents some selected set of GHC versions.

Instances

Instances details
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 GhcMeta Source #

Data type to keep meta information for every GhcVer.

Constructors

GhcMeta 

Fields

data Pvp Source #

Represents PVP versioning (4 numbers).

Constructors

Pvp 

Instances

Instances details
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"

oldGhcs :: [GhcVer] Source #

These are old GHC versions that are not working with default GHC versions when using Stack.