pandora-0.4.8: A box of patterns and paradigms
Safe HaskellSafe-Inferred
LanguageHaskell2010

Pandora.Paradigm.Inventory.Accumulator

Documentation

newtype Accumulator e a Source #

Constructors

Accumulator (e :*: a) 

Instances

Instances details
Semigroup e => Semimonoidal (-->) (:*:) (:*:) (Accumulator e :: Type -> Type) Source # 
Instance details

Defined in Pandora.Paradigm.Inventory.Accumulator

Methods

mult :: forall (a :: k) (b :: k). (Accumulator e a :*: Accumulator e b) --> Accumulator e (a :*: b) Source #

Semigroup e => Bindable ((->) :: Type -> Type -> Type) (Accumulator e) Source # 
Instance details

Defined in Pandora.Paradigm.Inventory.Accumulator

Methods

(=<<) :: (a -> Accumulator e b) -> Accumulator e a -> Accumulator e b Source #

Interpreted ((->) :: Type -> Type -> Type) (Accumulator e) Source # 
Instance details

Defined in Pandora.Paradigm.Inventory.Accumulator

Associated Types

type Primary (Accumulator e) a Source #

Methods

run :: Accumulator e a -> Primary (Accumulator e) a Source #

unite :: Primary (Accumulator e) a -> Accumulator e a Source #

(!) :: Accumulator e a -> Primary (Accumulator e) a Source #

(||=) :: (Semigroupoid (->), Interpreted (->) u) => (Primary (Accumulator e) a -> Primary u b) -> Accumulator e a -> u b Source #

(=||) :: (Semigroupoid (->), Interpreted (->) u) => (Accumulator e a -> u b) -> Primary (Accumulator e) a -> Primary u b Source #

(<$||=) :: (Semigroupoid (->), Covariant (->) (->) j, Interpreted (->) u) => (Primary (Accumulator e) a -> Primary u b) -> (j := Accumulator e a) -> (j := u b) Source #

(=||$>) :: (Covariant (->) (->) j, Interpreted (->) u) => (Accumulator e a -> u b) -> (j := Primary (Accumulator e) a) -> (j := Primary u b) Source #

Monoid e => Monadic ((->) :: Type -> Type -> Type) (Accumulator e) Source # 
Instance details

Defined in Pandora.Paradigm.Inventory.Accumulator

Methods

wrap :: forall (u :: Type -> Type) a. Pointable u => Accumulator e a -> (Accumulator e :> u) a Source #

Covariant ((->) :: Type -> Type -> Type) ((->) :: Type -> Type -> Type) (Accumulator e) Source # 
Instance details

Defined in Pandora.Paradigm.Inventory.Accumulator

Methods

(<-|-) :: (a -> b) -> Accumulator e a -> Accumulator e b Source #

Adjoint ((->) :: Type -> Type -> Type) ((->) :: Type -> Type -> Type) (Accumulator e) (Imprint e) Source # 
Instance details

Defined in Pandora.Paradigm.Inventory

Methods

(-|) :: (Accumulator e a -> b) -> a -> Imprint e b Source #

(|-) :: (a -> Imprint e b) -> Accumulator e a -> b Source #

type Schematic Monad (Accumulator e) Source # 
Instance details

Defined in Pandora.Paradigm.Inventory.Accumulator

type Primary (Accumulator e) a Source # 
Instance details

Defined in Pandora.Paradigm.Inventory.Accumulator

type Primary (Accumulator e) a = e :*: a

type Accumulated e t = Adaptable t (->) (Accumulator e) Source #

gather :: Accumulated e t => e -> t () Source #