Module

Halogen.Query.HalogenM

Package
purescript-halogen
Repository
slamdata/purescript-halogen

#HalogenF Source

data HalogenF s (f :: Type -> Type) g p o m a

The Halogen component algebra

Constructors

Instances

#HalogenAp Source

newtype HalogenAp s f g p o m a

Constructors

Instances

#HalogenM Source

newtype HalogenM s (f :: Type -> Type) g p o m a

Constructors

Instances

#halt Source

halt :: forall a m o p g f s. String -> HalogenM s f g p o m a

#mkQuery Source

mkQuery :: forall a m o p g f s. Eq p => p -> g a -> HalogenM s f g p o m a

#getSlots Source

getSlots :: forall m o p g f s. HalogenM s f g p o m (List p)

#checkSlot Source

checkSlot :: forall m o p g f s. p -> HalogenM s f g p o m Boolean

#getRef Source

getRef :: forall m o p g f s. RefLabel -> HalogenM s f g p o m (Maybe Foreign)

#subscribe Source

subscribe :: forall m o p g f s. EventSource f m -> HalogenM s f g p o m Unit

Provides a way of having a component subscribe to an EventSource from within an Eval function.

#raise Source

raise :: forall m o p g f s. o -> HalogenM s f g p o m Unit

Raises an output message for the component.

#fork Source

fork :: forall a eff m o p g f s. MonadAff eff m => HalogenM s f g p o m a -> HalogenM s f g p o m (Error -> m Unit)

#imapState Source

imapState :: forall m o p g f s' s. (s -> s') -> (s' -> s) -> (HalogenM s f g p o m) ~> (HalogenM s' f g p o m)

#mapQuery Source

mapQuery :: forall m o p g f' f s. Functor m => (f ~> f') -> (HalogenM s f g p o m) ~> (HalogenM s f' g p o m)

#mapChildQuery Source

mapChildQuery :: forall m o p g' g f s. (g ~> g') -> (HalogenM s f g p o m) ~> (HalogenM s f g' p o m)

#imapSlots Source

imapSlots :: forall m o p' p g f s. (p -> p') -> (p' -> p) -> (HalogenM s f g p o m) ~> (HalogenM s f g p' o m)

#mapOutput Source

mapOutput :: forall m o' o p g f s. (o -> o') -> (HalogenM s f g p o m) ~> (HalogenM s f g p o' m)

#hoist Source

hoist :: forall m' m o p g f s. Functor m' => (m ~> m') -> (HalogenM s f g p o m) ~> (HalogenM s f g p o m')