Module

Pha.Update.Internal

Package
purescript-pha
Repository
gbagan/purescript-pha

#Subscription Source

type Subscription msg = (msg -> Effect Unit) -> Effect (Effect Unit)

#UpdateF Source

data UpdateF :: Type -> Type -> (Type -> Type) -> Type -> Typedata UpdateF model msg m a

Constructors

Instances

#Update Source

newtype Update :: Type -> Type -> (Type -> Type) -> Type -> Typenewtype Update model msg m a

Constructors

Instances

#subscribe Source

subscribe :: forall model msg m. Subscription msg -> Update model msg m SubscriptionId

#unsubscribe Source

unsubscribe :: forall model msg m. SubscriptionId -> Update model msg m Unit

#mapMessage Source

mapMessage :: forall model msg msg' m. (msg -> msg') -> (Update model msg m) ~> (Update model msg' m)

#mapModel Source

mapModel :: forall model model' msg m. Lens' model model' -> (Update model' msg m) ~> (Update model msg m)

#hoist Source

hoist :: forall model msg m m'. (m ~> m') -> (Update model msg m) ~> (Update model msg m')