Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Documentation
Instances
Functor Tree Source # | |
Eq a => Eq (Tree a) Source # | |
Generic (Tree a) Source # | |
KFunctor Tree (Co ': ([] :: [Variance])) (a :&&: LoT0 :: LoT (Type -> Type)) (b :&&: LoT0 :: LoT (Type -> Type)) Source # | |
Defined in Generics.Kind.Examples | |
GenericK Tree (a :&&: LoT0 :: LoT (Type -> Type)) Source # | |
Split (Tree a) Tree (a :&&: LoT0 :: LoT (Type -> Type)) Source # | |
Defined in Generics.Kind.Examples | |
type Rep (Tree a) Source # | |
Defined in Generics.Kind.Examples type Rep (Tree a) = D1 (MetaData "Tree" "Generics.Kind.Examples" "kind-generics-0.1.1.0-IvPjNtMPbphFMMCSNUud6G" False) (C1 (MetaCons "Branch" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Tree a)) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Tree a))) :+: C1 (MetaCons "Leaf" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 a))) | |
type RepK Tree Source # | |
data WeirdTree a where Source #
WeirdBranch :: WeirdTree a -> WeirdTree a -> WeirdTree a | |
WeirdLeaf :: Show a => t -> a -> WeirdTree a |
Instances
Show b => KFunctor WeirdTree (Co ': ([] :: [Variance])) (a :&&: LoT0 :: LoT (Type -> Type)) (b :&&: LoT0 :: LoT (Type -> Type)) Source # | |
Defined in Generics.Kind.Examples | |
GenericK WeirdTree (a :&&: LoT0 :: LoT (Type -> Type)) Source # | |
Split (WeirdTree a) WeirdTree (a :&&: LoT0 :: LoT (Type -> Type)) Source # | |
Defined in Generics.Kind.Examples | |
type RepK WeirdTree Source # | |
Defined in Generics.Kind.Examples |
data WeirdTreeR a where Source #
WeirdBranchR :: WeirdTreeR a -> WeirdTreeR a -> WeirdTreeR a | |
WeirdLeafR :: (Show a, Typeable t, Eq t) => t -> a -> WeirdTreeR a |
Instances
Eq a => Eq (WeirdTreeR a) Source # | |
Defined in Generics.Kind.Examples (==) :: WeirdTreeR a -> WeirdTreeR a -> Bool # (/=) :: WeirdTreeR a -> WeirdTreeR a -> Bool # | |
GenericK WeirdTreeR (a :&&: LoT0 :: LoT (Type -> Type)) Source # | |
Defined in Generics.Kind.Examples type RepK WeirdTreeR :: LoT k -> Type Source # fromK :: (WeirdTreeR :@@: (a :&&: LoT0)) -> RepK WeirdTreeR (a :&&: LoT0) Source # toK :: RepK WeirdTreeR (a :&&: LoT0) -> WeirdTreeR :@@: (a :&&: LoT0) Source # | |
Split (WeirdTreeR a) WeirdTreeR (a :&&: LoT0 :: LoT (Type -> Type)) Source # | |
Defined in Generics.Kind.Examples | |
type RepK WeirdTreeR Source # | |
Defined in Generics.Kind.Examples type RepK WeirdTreeR = (F (WeirdTreeR :$: (V0 :: Atom (Type -> Type) Type)) :*: F (WeirdTreeR :$: (V0 :: Atom (Type -> Type) Type))) :+: ERefl ((Show :$: (V1 :: Atom (Type -> Type -> Type) Type)) :=>: ((Eq :$: (V0 :: Atom (Type -> Type -> Type) Type)) :=>: (F (V0 :: Atom (Type -> Type -> Type) Type) :*: F (V1 :: Atom (Type -> Type -> Type) Type)))) |