Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data CabalSpecVersion
- 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: Cabal-syntax-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: Cabal-syntax-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: Cabal-syntax-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 # |