Distribution.CabalSpecVersion

Cabal-2.1.0.0: A framework for packaging Haskell software

Safe Haskell | None
Language | Haskell2010

Distribution.CabalSpecVersion

Synopsis

- data CabalSpecVersion
  - = CabalSpecOld
  - | CabalSpecV20
  - | CabalSpecV22
- cabalSpecLatest :: CabalSpecVersion
- cabalSpecFeatures :: CabalSpecVersion -> Set CabalFeature
- cabalSpecSupports :: CabalSpecVersion -> [Int] -> Bool
- specHasCommonStanzas :: CabalSpecVersion -> HasCommonStanzas
- specHasElif :: CabalSpecVersion -> HasElif
- data CabalFeature
  - = Elif
  - | CommonStanzas
- data HasElif
  - = HasElif
  - | NoElif
- data HasCommonStanzas
  - = HasCommonStanzas
  - | NoCommonStanzas

# Documentation

data CabalSpecVersion Source #

Different Cabal-the-spec versions.

We branch based on this at least in the parser.

Constructors

CabalSpecOld |
CabalSpecV20 |
CabalSpecV22 |

Instances

Bounded CabalSpecVersion Source # |
Instance details Methods minBound :: CabalSpecVersion Source # maxBound :: CabalSpecVersion Source #
Enum CabalSpecVersion Source # |
Instance details Methods succ :: CabalSpecVersion -> CabalSpecVersion Source # pred :: CabalSpecVersion -> CabalSpecVersion Source # toEnum :: Int -> CabalSpecVersion Source # fromEnum :: CabalSpecVersion -> Int Source # enumFrom :: CabalSpecVersion -> [CabalSpecVersion] Source # enumFromThen :: CabalSpecVersion -> CabalSpecVersion -> [CabalSpecVersion] Source # enumFromTo :: CabalSpecVersion -> CabalSpecVersion -> [CabalSpecVersion] Source # enumFromThenTo :: CabalSpecVersion -> CabalSpecVersion -> CabalSpecVersion -> [CabalSpecVersion] Source #
Eq CabalSpecVersion Source # |
Instance details Methods (==) :: CabalSpecVersion -> CabalSpecVersion -> Bool # (/=) :: CabalSpecVersion -> CabalSpecVersion -> Bool #
Data CabalSpecVersion Source # |
Instance details Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CabalSpecVersion -> c CabalSpecVersion Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CabalSpecVersion Source # toConstr :: CabalSpecVersion -> Constr Source # dataTypeOf :: CabalSpecVersion -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CabalSpecVersion) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CabalSpecVersion) Source # gmapT :: (forall b. Data b => b -> b) -> CabalSpecVersion -> CabalSpecVersion Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CabalSpecVersion -> r Source # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CabalSpecVersion -> r Source # gmapQ :: (forall d. Data d => d -> u) -> CabalSpecVersion -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> CabalSpecVersion -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> CabalSpecVersion -> m CabalSpecVersion Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CabalSpecVersion -> m CabalSpecVersion Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CabalSpecVersion -> m CabalSpecVersion Source #
Ord CabalSpecVersion Source # |
Instance details Methods compare :: CabalSpecVersion -> CabalSpecVersion -> Ordering # (<) :: CabalSpecVersion -> CabalSpecVersion -> Bool # (<=) :: CabalSpecVersion -> CabalSpecVersion -> Bool # (>) :: CabalSpecVersion -> CabalSpecVersion -> Bool # (>=) :: CabalSpecVersion -> CabalSpecVersion -> Bool # max :: CabalSpecVersion -> CabalSpecVersion -> CabalSpecVersion # min :: CabalSpecVersion -> CabalSpecVersion -> CabalSpecVersion #
Read CabalSpecVersion Source # |
Instance details Methods readsPrec :: Int -> ReadS CabalSpecVersion Source # readList :: ReadS [CabalSpecVersion] Source # readPrec :: ReadPrec CabalSpecVersion Source # readListPrec :: ReadPrec [CabalSpecVersion] Source #
Show CabalSpecVersion Source # |
Instance details Methods showsPrec :: Int -> CabalSpecVersion -> ShowS Source # show :: CabalSpecVersion -> String Source # showList :: [CabalSpecVersion] -> ShowS Source #
Generic CabalSpecVersion Source # |
Instance details Associated Types type Rep CabalSpecVersion :: * -> * Source # Methods from :: CabalSpecVersion -> Rep CabalSpecVersion x Source # to :: Rep CabalSpecVersion x -> CabalSpecVersion Source #
type Rep CabalSpecVersion Source # |
Instance details type Rep CabalSpecVersion = D1 (MetaData "CabalSpecVersion" "Distribution.CabalSpecVersion" "Cabal-2.1.0.0" False) (C1 (MetaCons "CabalSpecOld" PrefixI False) (U1 :: * -> *) :+: (C1 (MetaCons "CabalSpecV20" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "CabalSpecV22" PrefixI False) (U1 :: * -> *)))

cabalSpecLatest :: CabalSpecVersion Source #

cabalSpecFeatures :: CabalSpecVersion -> Set CabalFeature Source #

cabalSpecSupports :: CabalSpecVersion -> [Int] -> Bool Source #

specHasCommonStanzas :: CabalSpecVersion -> HasCommonStanzas Source #

specHasElif :: CabalSpecVersion -> HasElif Source #

data CabalFeature Source #

Constructors

Elif |
CommonStanzas |

Instances

Bounded CabalFeature Source # |
Instance details Methods minBound :: CabalFeature Source # maxBound :: CabalFeature Source #
Enum CabalFeature Source # |
Instance details Methods succ :: CabalFeature -> CabalFeature Source # pred :: CabalFeature -> CabalFeature Source # toEnum :: Int -> CabalFeature Source # fromEnum :: CabalFeature -> Int Source # enumFrom :: CabalFeature -> [CabalFeature] Source # enumFromThen :: CabalFeature -> CabalFeature -> [CabalFeature] Source # enumFromTo :: CabalFeature -> CabalFeature -> [CabalFeature] Source # enumFromThenTo :: CabalFeature -> CabalFeature -> CabalFeature -> [CabalFeature] Source #
Eq CabalFeature Source # |
Instance details Methods (==) :: CabalFeature -> CabalFeature -> Bool # (/=) :: CabalFeature -> CabalFeature -> Bool #
Data CabalFeature Source # |
Instance details Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CabalFeature -> c CabalFeature Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CabalFeature Source # toConstr :: CabalFeature -> Constr Source # dataTypeOf :: CabalFeature -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CabalFeature) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CabalFeature) Source # gmapT :: (forall b. Data b => b -> b) -> CabalFeature -> CabalFeature Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CabalFeature -> r Source # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CabalFeature -> r Source # gmapQ :: (forall d. Data d => d -> u) -> CabalFeature -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> CabalFeature -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> CabalFeature -> m CabalFeature Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CabalFeature -> m CabalFeature Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CabalFeature -> m CabalFeature Source #
Ord CabalFeature Source # |
Instance details Methods compare :: CabalFeature -> CabalFeature -> Ordering # (<) :: CabalFeature -> CabalFeature -> Bool # (<=) :: CabalFeature -> CabalFeature -> Bool # (>) :: CabalFeature -> CabalFeature -> Bool # (>=) :: CabalFeature -> CabalFeature -> Bool # max :: CabalFeature -> CabalFeature -> CabalFeature # min :: CabalFeature -> CabalFeature -> CabalFeature #
Read CabalFeature Source # |
Instance details Methods readsPrec :: Int -> ReadS CabalFeature Source # readList :: ReadS [CabalFeature] Source # readPrec :: ReadPrec CabalFeature Source # readListPrec :: ReadPrec [CabalFeature] Source #
Show CabalFeature Source # |
Instance details Methods showsPrec :: Int -> CabalFeature -> ShowS Source # show :: CabalFeature -> String Source # showList :: [CabalFeature] -> ShowS Source #
Generic CabalFeature Source # |
Instance details Associated Types type Rep CabalFeature :: * -> * Source # Methods from :: CabalFeature -> Rep CabalFeature x Source # to :: Rep CabalFeature x -> CabalFeature Source #
type Rep CabalFeature Source # |
Instance details type Rep CabalFeature = D1 (MetaData "CabalFeature" "Distribution.CabalSpecVersion" "Cabal-2.1.0.0" False) (C1 (MetaCons "Elif" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "CommonStanzas" PrefixI False) (U1 :: * -> *))

data HasElif Source #

Constructors

HasElif |
NoElif |

Instances

Eq HasElif Source # |
Instance details Methods (==) :: HasElif -> HasElif -> Bool # (/=) :: HasElif -> HasElif -> Bool #
Show HasElif Source # |
Instance details Methods showsPrec :: Int -> HasElif -> ShowS Source # show :: HasElif -> String Source # showList :: [HasElif] -> ShowS Source #

data HasCommonStanzas Source #

Constructors

HasCommonStanzas |
NoCommonStanzas |

Instances

Eq HasCommonStanzas Source # |
Instance details Methods (==) :: HasCommonStanzas -> HasCommonStanzas -> Bool # (/=) :: HasCommonStanzas -> HasCommonStanzas -> Bool #
Show HasCommonStanzas Source # |
Instance details Methods showsPrec :: Int -> HasCommonStanzas -> ShowS Source # show :: HasCommonStanzas -> String Source # showList :: [HasCommonStanzas] -> ShowS Source #