cabal-install-solver-3.12.1.0: The command-line interface for Cabal and Hackage.

Safe Haskell | None
Language | Haskell2010

Distribution.Solver.Types.OptionalStanza

Contents

- OptionalStanza
- Set of stanzas
- Map indexed by stanzas

Synopsis

- data OptionalStanza
  - = TestStanzas
  - | BenchStanzas
- showStanza :: OptionalStanza -> String
- showStanzas :: OptionalStanzaSet -> String
- enableStanzas :: OptionalStanzaSet -> ComponentRequestedSpec
- data OptionalStanzaSet
- optStanzaSetFromList :: [OptionalStanza] -> OptionalStanzaSet
- optStanzaSetToList :: OptionalStanzaSet -> [OptionalStanza]
- optStanzaSetMember :: OptionalStanza -> OptionalStanzaSet -> Bool
- optStanzaSetInsert :: OptionalStanza -> OptionalStanzaSet -> OptionalStanzaSet
- optStanzaSetSingleton :: OptionalStanza -> OptionalStanzaSet
- optStanzaSetIntersection :: OptionalStanzaSet -> OptionalStanzaSet -> OptionalStanzaSet
- optStanzaSetNull :: OptionalStanzaSet -> Bool
- optStanzaSetIsSubset :: OptionalStanzaSet -> OptionalStanzaSet -> Bool
- data OptionalStanzaMap a
- optStanzaTabulate :: (OptionalStanza -> a) -> OptionalStanzaMap a
- optStanzaIndex :: OptionalStanzaMap a -> OptionalStanza -> a
- optStanzaLookup :: OptionalStanza -> OptionalStanzaMap a -> a
- optStanzaKeysFilteredByValue :: (a -> Bool) -> OptionalStanzaMap a -> OptionalStanzaSet

# OptionalStanza

data OptionalStanza Source #

Constructors

TestStanzas |
BenchStanzas |

#### Instances

Instances details

Structured OptionalStanza Source # |
Instance details Defined in Distribution.Solver.Types.OptionalStanza Methods structure :: Proxy OptionalStanza -> Structure Source # structureHash' :: Tagged OptionalStanza MD5
Binary OptionalStanza Source # |
Instance details Defined in Distribution.Solver.Types.OptionalStanza Methods put :: OptionalStanza -> Put Source # get :: Get OptionalStanza Source # putList :: [OptionalStanza] -> Put Source #
Bounded OptionalStanza Source # |
Instance details Defined in Distribution.Solver.Types.OptionalStanza Methods minBound :: OptionalStanza Source # maxBound :: OptionalStanza Source #
Enum OptionalStanza Source # |

Instance details

Defined in Distribution.Solver.Types.OptionalStanza

Methods

succ :: OptionalStanza -> OptionalStanza Source #

pred :: OptionalStanza -> OptionalStanza Source #

toEnum :: Int -> OptionalStanza Source #

fromEnum :: OptionalStanza -> Int Source #

enumFrom :: OptionalStanza -> [OptionalStanza] Source #

enumFromThen :: OptionalStanza -> OptionalStanza -> [OptionalStanza] Source #

enumFromTo :: OptionalStanza -> OptionalStanza -> [OptionalStanza] Source #

enumFromThenTo :: OptionalStanza -> OptionalStanza -> OptionalStanza -> [OptionalStanza] Source #

Generic OptionalStanza Source # |

Instance details

Defined in Distribution.Solver.Types.OptionalStanza

Associated Types

type Rep OptionalStanza |
Instance details Defined in Distribution.Solver.Types.OptionalStanza type Rep OptionalStanza = D1 ('MetaData "OptionalStanza" "Distribution.Solver.Types.OptionalStanza" "cabal-install-solver-3.12.1.0-5dSETZK2idVHohhzkfJS3u" 'False) (C1 ('MetaCons "TestStanzas" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "BenchStanzas" 'PrefixI 'False) (U1 :: Type -> Type))

Methods

from :: OptionalStanza -> Rep OptionalStanza x Source #

to :: Rep OptionalStanza x -> OptionalStanza Source #

Show OptionalStanza Source # |
Instance details Defined in Distribution.Solver.Types.OptionalStanza Methods showsPrec :: Int -> OptionalStanza -> ShowS Source # show :: OptionalStanza -> String Source # showList :: [OptionalStanza] -> ShowS Source #
Eq OptionalStanza Source # |
Instance details Defined in Distribution.Solver.Types.OptionalStanza Methods (==) :: OptionalStanza -> OptionalStanza -> Bool Source # (/=) :: OptionalStanza -> OptionalStanza -> Bool Source #
Ord OptionalStanza Source # |

Instance details

Defined in Distribution.Solver.Types.OptionalStanza

Methods

compare :: OptionalStanza -> OptionalStanza -> Ordering Source #

(<) :: OptionalStanza -> OptionalStanza -> Bool Source #

(<=) :: OptionalStanza -> OptionalStanza -> Bool Source #

(>) :: OptionalStanza -> OptionalStanza -> Bool Source #

(>=) :: OptionalStanza -> OptionalStanza -> Bool Source #

max :: OptionalStanza -> OptionalStanza -> OptionalStanza Source #

min :: OptionalStanza -> OptionalStanza -> OptionalStanza Source #

type Rep OptionalStanza Source # |
Instance details Defined in Distribution.Solver.Types.OptionalStanza type Rep OptionalStanza = D1 ('MetaData "OptionalStanza" "Distribution.Solver.Types.OptionalStanza" "cabal-install-solver-3.12.1.0-5dSETZK2idVHohhzkfJS3u" 'False) (C1 ('MetaCons "TestStanzas" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "BenchStanzas" 'PrefixI 'False) (U1 :: Type -> Type))

showStanza :: OptionalStanza -> String Source #

String representation of an OptionalStanza.

showStanzas :: OptionalStanzaSet -> String Source #

enableStanzas :: OptionalStanzaSet -> ComponentRequestedSpec Source #

Convert a list of `OptionalStanza` into the corresponding Cabal's `ComponentRequestedSpec` which records what components are enabled.

# Set of stanzas

data OptionalStanzaSet Source #

#### Instances

Instances details

Structured OptionalStanzaSet Source # |
Instance details Defined in Distribution.Solver.Types.OptionalStanza Methods structure :: Proxy OptionalStanzaSet -> Structure Source # structureHash' :: Tagged OptionalStanzaSet MD5
Binary OptionalStanzaSet Source # |
Instance details Defined in Distribution.Solver.Types.OptionalStanza Methods put :: OptionalStanzaSet -> Put Source # get :: Get OptionalStanzaSet Source # putList :: [OptionalStanzaSet] -> Put Source #
Monoid OptionalStanzaSet Source # |
Instance details Defined in Distribution.Solver.Types.OptionalStanza Methods mempty :: OptionalStanzaSet Source # mappend :: OptionalStanzaSet -> OptionalStanzaSet -> OptionalStanzaSet Source # mconcat :: [OptionalStanzaSet] -> OptionalStanzaSet Source #
Semigroup OptionalStanzaSet Source # |
Instance details Defined in Distribution.Solver.Types.OptionalStanza Methods (<>) :: OptionalStanzaSet -> OptionalStanzaSet -> OptionalStanzaSet Source # sconcat :: NonEmpty OptionalStanzaSet -> OptionalStanzaSet Source # stimes :: Integral b => b -> OptionalStanzaSet -> OptionalStanzaSet Source #
Show OptionalStanzaSet Source # |
Instance details Defined in Distribution.Solver.Types.OptionalStanza Methods showsPrec :: Int -> OptionalStanzaSet -> ShowS Source # show :: OptionalStanzaSet -> String Source # showList :: [OptionalStanzaSet] -> ShowS Source #
Eq OptionalStanzaSet Source # |
Instance details Defined in Distribution.Solver.Types.OptionalStanza Methods (==) :: OptionalStanzaSet -> OptionalStanzaSet -> Bool Source # (/=) :: OptionalStanzaSet -> OptionalStanzaSet -> Bool Source #
Ord OptionalStanzaSet Source # |

Instance details

Defined in Distribution.Solver.Types.OptionalStanza

Methods

compare :: OptionalStanzaSet -> OptionalStanzaSet -> Ordering Source #

(<) :: OptionalStanzaSet -> OptionalStanzaSet -> Bool Source #

(<=) :: OptionalStanzaSet -> OptionalStanzaSet -> Bool Source #

(>) :: OptionalStanzaSet -> OptionalStanzaSet -> Bool Source #

(>=) :: OptionalStanzaSet -> OptionalStanzaSet -> Bool Source #

max :: OptionalStanzaSet -> OptionalStanzaSet -> OptionalStanzaSet Source #

min :: OptionalStanzaSet -> OptionalStanzaSet -> OptionalStanzaSet Source #

optStanzaSetFromList :: [OptionalStanza] -> OptionalStanzaSet Source #

optStanzaSetToList :: OptionalStanzaSet -> [OptionalStanza] Source #

optStanzaSetMember :: OptionalStanza -> OptionalStanzaSet -> Bool Source #

optStanzaSetInsert :: OptionalStanza -> OptionalStanzaSet -> OptionalStanzaSet Source #

optStanzaSetSingleton :: OptionalStanza -> OptionalStanzaSet Source #

optStanzaSetIntersection :: OptionalStanzaSet -> OptionalStanzaSet -> OptionalStanzaSet Source #

optStanzaSetNull :: OptionalStanzaSet -> Bool Source #

optStanzaSetIsSubset :: OptionalStanzaSet -> OptionalStanzaSet -> Bool Source #

# Map indexed by stanzas

data OptionalStanzaMap a Source #

Note: this is total map.

#### Instances

Instances details

Structured a => Structured (OptionalStanzaMap a) Source # |
Instance details Defined in Distribution.Solver.Types.OptionalStanza Methods structure :: Proxy (OptionalStanzaMap a) -> Structure Source # structureHash' :: Tagged (OptionalStanzaMap a) MD5
Binary a => Binary (OptionalStanzaMap a) Source # |
Instance details Defined in Distribution.Solver.Types.OptionalStanza Methods put :: OptionalStanzaMap a -> Put Source # get :: Get (OptionalStanzaMap a) Source # putList :: [OptionalStanzaMap a] -> Put Source #
Generic (OptionalStanzaMap a) Source # |

Instance details

Defined in Distribution.Solver.Types.OptionalStanza

Associated Types

type Rep (OptionalStanzaMap a) |

Instance details

Defined in Distribution.Solver.Types.OptionalStanza

type Rep (OptionalStanzaMap a) = D1 ('MetaData "OptionalStanzaMap" "Distribution.Solver.Types.OptionalStanza" "cabal-install-solver-3.12.1.0-5dSETZK2idVHohhzkfJS3u" 'False) (C1 ('MetaCons "OptionalStanzaMap" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a)))

Methods

from :: OptionalStanzaMap a -> Rep (OptionalStanzaMap a) x Source #

to :: Rep (OptionalStanzaMap a) x -> OptionalStanzaMap a Source #

Show a => Show (OptionalStanzaMap a) Source # |
Instance details Defined in Distribution.Solver.Types.OptionalStanza Methods showsPrec :: Int -> OptionalStanzaMap a -> ShowS Source # show :: OptionalStanzaMap a -> String Source # showList :: [OptionalStanzaMap a] -> ShowS Source #
Eq a => Eq (OptionalStanzaMap a) Source # |
Instance details Defined in Distribution.Solver.Types.OptionalStanza Methods (==) :: OptionalStanzaMap a -> OptionalStanzaMap a -> Bool Source # (/=) :: OptionalStanzaMap a -> OptionalStanzaMap a -> Bool Source #
Ord a => Ord (OptionalStanzaMap a) Source # |

Instance details

Defined in Distribution.Solver.Types.OptionalStanza

Methods

compare :: OptionalStanzaMap a -> OptionalStanzaMap a -> Ordering Source #

(<) :: OptionalStanzaMap a -> OptionalStanzaMap a -> Bool Source #

(<=) :: OptionalStanzaMap a -> OptionalStanzaMap a -> Bool Source #

(>) :: OptionalStanzaMap a -> OptionalStanzaMap a -> Bool Source #

(>=) :: OptionalStanzaMap a -> OptionalStanzaMap a -> Bool Source #

max :: OptionalStanzaMap a -> OptionalStanzaMap a -> OptionalStanzaMap a Source #

min :: OptionalStanzaMap a -> OptionalStanzaMap a -> OptionalStanzaMap a Source #

type Rep (OptionalStanzaMap a) Source # |

Instance details

Defined in Distribution.Solver.Types.OptionalStanza

type Rep (OptionalStanzaMap a) = D1 ('MetaData "OptionalStanzaMap" "Distribution.Solver.Types.OptionalStanza" "cabal-install-solver-3.12.1.0-5dSETZK2idVHohhzkfJS3u" 'False) (C1 ('MetaCons "OptionalStanzaMap" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a)))

optStanzaTabulate :: (OptionalStanza -> a) -> OptionalStanzaMap a Source #

optStanzaIndex :: OptionalStanzaMap a -> OptionalStanza -> a Source #

optStanzaLookup :: OptionalStanza -> OptionalStanzaMap a -> a Source #

optStanzaKeysFilteredByValue :: (a -> Bool) -> OptionalStanzaMap a -> OptionalStanzaSet Source #