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 s f g p o m a. String -> HalogenM s f g p o m a

#mkQuery Source

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

#getSlots Source

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

#checkSlot Source

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

#getRef Source

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

#subscribe Source

subscribe :: forall s f g p o m. 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 s f g p o m. o -> HalogenM s f g p o m Unit

Raises an output message for the component.

#fork Source

fork :: forall s f g p o m eff a. 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 s s' f g p o m. (s -> s') -> (s' -> s) -> (HalogenM s f g p o m) ~> (HalogenM s' f g p o m)

#mapQuery Source

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

#mapChildQuery Source

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

#imapSlots Source

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

#mapOutput Source

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

#hoist Source

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