Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data CabalSpecVersion
- = CabalSpecV1_0
- | CabalSpecV1_2
- | CabalSpecV1_4
- | CabalSpecV1_6
- | CabalSpecV1_8
- | CabalSpecV1_10
- | CabalSpecV1_12
- | CabalSpecV1_18
- | CabalSpecV1_20
- | CabalSpecV1_22
- | CabalSpecV1_24
- | CabalSpecV2_0
- | CabalSpecV2_2
- | CabalSpecV2_4
- | CabalSpecV3_0
- | CabalSpecV3_4
- | CabalSpecV3_6
- | CabalSpecV3_8
- | CabalSpecV3_12
- | CabalSpecV3_14
- showCabalSpecVersion :: CabalSpecVersion -> String
- cabalSpecLatest :: CabalSpecVersion
- cabalSpecFromVersionDigits :: [Int] -> Maybe CabalSpecVersion
- cabalSpecToVersionDigits :: CabalSpecVersion -> [Int]
- cabalSpecMinimumLibraryVersion :: CabalSpecVersion -> [Int]
- specHasCommonStanzas :: CabalSpecVersion -> HasCommonStanzas
- specHasElif :: CabalSpecVersion -> HasElif
- data HasElif
- data HasCommonStanzas
- data HasGlobstar
Documentation
data CabalSpecVersion Source #
Different Cabal-the-spec versions.
We branch based on this at least in the parser.
Instances
showCabalSpecVersion :: CabalSpecVersion -> String Source #
Show cabal spec version, but not the way in the .cabal files
Since: 3.0.0.0
cabalSpecFromVersionDigits :: [Int] -> Maybe CabalSpecVersion Source #
Parse CabalSpecVersion
from version digits.
It may fail if for recent versions the version is not exact.
cabalSpecToVersionDigits :: CabalSpecVersion -> [Int] Source #
Since: 3.4.0.0
cabalSpecMinimumLibraryVersion :: CabalSpecVersion -> [Int] Source #
What is the minimum Cabal library version which knows how handle this spec version.
Note: this is a point where we could decouple cabal-spec and Cabal versions, if we ever want that.
>>>
cabalSpecMinimumLibraryVersion CabalSpecV3_0
[2,5]
>>>
cabalSpecMinimumLibraryVersion CabalSpecV2_4
[2,3]
Since: 3.4.0.0
Instances
data HasCommonStanzas Source #
Instances
Show HasCommonStanzas Source # | |
Defined in Distribution.CabalSpecVersion showsPrec :: Int -> HasCommonStanzas -> ShowS # show :: HasCommonStanzas -> String # showList :: [HasCommonStanzas] -> ShowS # | |
Eq HasCommonStanzas Source # | |
Defined in Distribution.CabalSpecVersion (==) :: HasCommonStanzas -> HasCommonStanzas -> Bool # (/=) :: HasCommonStanzas -> HasCommonStanzas -> Bool # |