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.
Instances
showCabalSpecVersion :: CabalSpecVersion -> String Source #
Show cabal spec version, but not the way in the .cabal files
Since: Cabal-3.0.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]
data HasCommonStanzas Source #
Instances
Eq HasCommonStanzas # | |
Defined in Distribution.CabalSpecVersion (==) :: HasCommonStanzas -> HasCommonStanzas -> Bool # (/=) :: HasCommonStanzas -> HasCommonStanzas -> Bool # | |
Show HasCommonStanzas # | |
Defined in Distribution.CabalSpecVersion |