Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Aztecs.Hierarchy
Synopsis
- newtype Parent = Parent {}
- newtype Children = Children {}
- update :: (ArrowQueryReader qr, ArrowDynamicQueryReader qr, ArrowReaderSystem qr arr, ArrowQueueSystem b m arr) => arr () ()
- data Hierarchy a = Node {
- nodeEntityId :: EntityID
- nodeEntity :: a
- nodeChildren :: [Hierarchy a]
- toList :: Hierarchy a -> [(EntityID, a)]
- foldWithKey :: (EntityID -> a -> b -> b) -> Hierarchy a -> b -> b
- mapWithKey :: (EntityID -> a -> b) -> Hierarchy a -> Hierarchy b
- mapWithAccum :: (EntityID -> a -> b -> (c, b)) -> b -> Hierarchy a -> Hierarchy c
- hierarchy :: (ArrowQueryReader q, ArrowDynamicQueryReader q, ArrowReaderSystem q arr) => EntityID -> q i a -> arr i (Maybe (Hierarchy a))
- hierarchies :: (ArrowQueryReader q, ArrowDynamicQueryReader q, ArrowReaderSystem q arr) => q i a -> arr i [Hierarchy a]
- newtype ParentState = ParentState {}
- newtype ChildState = ChildState {}
Documentation
Instances
Constructors
Children | |
Fields |
Instances
Component Children Source # | |
Defined in Aztecs.Hierarchy | |
Monoid Children Source # | |
Semigroup Children Source # | |
Generic Children Source # | |
Show Children Source # | |
NFData Children Source # | |
Defined in Aztecs.Hierarchy | |
Eq Children Source # | |
Ord Children Source # | |
Defined in Aztecs.Hierarchy | |
type StorageT Children Source # | |
Defined in Aztecs.Hierarchy | |
type Rep Children Source # | |
Defined in Aztecs.Hierarchy |
update :: (ArrowQueryReader qr, ArrowDynamicQueryReader qr, ArrowReaderSystem qr arr, ArrowQueueSystem b m arr) => arr () () Source #
Constructors
Node | |
Fields
|
Instances
Foldable Hierarchy Source # | |
Defined in Aztecs.Hierarchy Methods fold :: Monoid m => Hierarchy m -> m # foldMap :: Monoid m => (a -> m) -> Hierarchy a -> m # foldMap' :: Monoid m => (a -> m) -> Hierarchy a -> m # foldr :: (a -> b -> b) -> b -> Hierarchy a -> b # foldr' :: (a -> b -> b) -> b -> Hierarchy a -> b # foldl :: (b -> a -> b) -> b -> Hierarchy a -> b # foldl' :: (b -> a -> b) -> b -> Hierarchy a -> b # foldr1 :: (a -> a -> a) -> Hierarchy a -> a # foldl1 :: (a -> a -> a) -> Hierarchy a -> a # toList :: Hierarchy a -> [a] # length :: Hierarchy a -> Int # elem :: Eq a => a -> Hierarchy a -> Bool # maximum :: Ord a => Hierarchy a -> a # minimum :: Ord a => Hierarchy a -> a # | |
Traversable Hierarchy Source # | |
Defined in Aztecs.Hierarchy | |
Functor Hierarchy Source # | |
foldWithKey :: (EntityID -> a -> b -> b) -> Hierarchy a -> b -> b Source #
hierarchy :: (ArrowQueryReader q, ArrowDynamicQueryReader q, ArrowReaderSystem q arr) => EntityID -> q i a -> arr i (Maybe (Hierarchy a)) Source #
hierarchies :: (ArrowQueryReader q, ArrowDynamicQueryReader q, ArrowReaderSystem q arr) => q i a -> arr i [Hierarchy a] Source #
Build all hierarchies of parents to children with the given query.
newtype ParentState Source #
Constructors
ParentState | |
Fields |
Instances
Component ParentState Source # | |
Defined in Aztecs.Hierarchy Associated Types type StorageT ParentState Source # | |
Generic ParentState Source # | |
Defined in Aztecs.Hierarchy Associated Types type Rep ParentState :: Type -> Type # | |
Show ParentState Source # | |
Defined in Aztecs.Hierarchy Methods showsPrec :: Int -> ParentState -> ShowS # show :: ParentState -> String # showList :: [ParentState] -> ShowS # | |
NFData ParentState Source # | |
Defined in Aztecs.Hierarchy Methods rnf :: ParentState -> () # | |
type StorageT ParentState Source # | |
Defined in Aztecs.Hierarchy | |
type Rep ParentState Source # | |
Defined in Aztecs.Hierarchy type Rep ParentState = D1 ('MetaData "ParentState" "Aztecs.Hierarchy" "aztecs-0.8.0-5YWGoxTs0Vw9iciqZAe9GO" 'True) (C1 ('MetaCons "ParentState" 'PrefixI 'True) (S1 ('MetaSel ('Just "unParentState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EntityID))) |
newtype ChildState Source #
Constructors
ChildState | |
Fields |
Instances
Component ChildState Source # | |
Defined in Aztecs.Hierarchy Associated Types type StorageT ChildState Source # | |
Generic ChildState Source # | |
Defined in Aztecs.Hierarchy Associated Types type Rep ChildState :: Type -> Type # | |
Show ChildState Source # | |
Defined in Aztecs.Hierarchy Methods showsPrec :: Int -> ChildState -> ShowS # show :: ChildState -> String # showList :: [ChildState] -> ShowS # | |
NFData ChildState Source # | |
Defined in Aztecs.Hierarchy Methods rnf :: ChildState -> () # | |
type StorageT ChildState Source # | |
Defined in Aztecs.Hierarchy | |
type Rep ChildState Source # | |
Defined in Aztecs.Hierarchy type Rep ChildState = D1 ('MetaData "ChildState" "Aztecs.Hierarchy" "aztecs-0.8.0-5YWGoxTs0Vw9iciqZAe9GO" 'True) (C1 ('MetaCons "ChildState" 'PrefixI 'True) (S1 ('MetaSel ('Just "unChildState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Set EntityID)))) |