Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Mixin = Mixin {}
- mkMixin :: PackageName -> LibraryName -> IncludeRenaming -> Mixin
- normaliseMixin :: Mixin -> Mixin
Documentation
Invariant: if mixinLibraryName
is LSubLibName
, it's not
the same as mixinPackageName
. In other words,
the same invariant as Dependency
has.
Instances
Parsec Mixin Source # |
Sublibrary syntax is accepted since
| ||||
Defined in Distribution.Types.Mixin parsec :: CabalParsing m => m Mixin Source # | |||||
Pretty Mixin Source # | |||||
Defined in Distribution.Types.Mixin | |||||
Structured Mixin Source # | |||||
Defined in Distribution.Types.Mixin | |||||
Binary Mixin Source # | |||||
NFData Mixin Source # | |||||
Defined in Distribution.Types.Mixin | |||||
Data Mixin Source # | |||||
Defined in Distribution.Types.Mixin gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Mixin -> c Mixin # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Mixin # dataTypeOf :: Mixin -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Mixin) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Mixin) # gmapT :: (forall b. Data b => b -> b) -> Mixin -> Mixin # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Mixin -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Mixin -> r # gmapQ :: (forall d. Data d => d -> u) -> Mixin -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Mixin -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Mixin -> m Mixin # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Mixin -> m Mixin # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Mixin -> m Mixin # | |||||
Generic Mixin Source # | |||||
Defined in Distribution.Types.Mixin
| |||||
Read Mixin Source # | |||||
Show Mixin Source # | |||||
Eq Mixin Source # | |||||
Ord Mixin Source # | |||||
type Rep Mixin Source # | |||||
Defined in Distribution.Types.Mixin type Rep Mixin = D1 ('MetaData "Mixin" "Distribution.Types.Mixin" "Cabal-syntax-3.14.0.0-395c" 'False) (C1 ('MetaCons "Mixin" 'PrefixI 'True) (S1 ('MetaSel ('Just "mixinPackageName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PackageName) :*: (S1 ('MetaSel ('Just "mixinLibraryName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LibraryName) :*: S1 ('MetaSel ('Just "mixinIncludeRenaming") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 IncludeRenaming)))) |
mkMixin :: PackageName -> LibraryName -> IncludeRenaming -> Mixin Source #
Smart constructor of Mixin
, enforces invariant.
Since: Cabal-syntax-3.4.0.0
normaliseMixin :: Mixin -> Mixin Source #
Restore invariant