Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data CabalSpecVersion
- showCabalSpecVersion :: CabalSpecVersion -> String
- cabalSpecLatest :: CabalSpecVersion
- cabalSpecFromVersionDigits :: [ Int ] -> CabalSpecVersion
- cabalSpecFromVersionDigitsMaybe :: [ 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.
CabalSpecV1_0 |
this is older than
|
CabalSpecV1_2 |
new syntax (sections) |
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 |
Instances
showCabalSpecVersion :: CabalSpecVersion -> String Source #
Show cabal spec version, but not the way in the .cabal files
Since: 3.0.0.0
cabalSpecFromVersionDigits :: [ Int ] -> CabalSpecVersion Source #
cabalSpecToVersionDigits :: CabalSpecVersion -> [ Int ] Source #
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]
data HasCommonStanzas Source #
Instances
Eq HasCommonStanzas Source # | |
Defined in Distribution.CabalSpecVersion (==) :: HasCommonStanzas -> HasCommonStanzas -> Bool Source # (/=) :: HasCommonStanzas -> HasCommonStanzas -> Bool Source # |
|
Show HasCommonStanzas Source # | |
Defined in Distribution.CabalSpecVersion |