Module

Pha.Subscriptions

Package
purescript-pha
Repository
gbagan/purescript-pha

#Subscription Source

newtype Subscription msg

Constructors

#makeSubscription Source

makeSubscription :: forall d msg. ((msg -> Effect Unit) -> d -> Effect Unit) -> d -> Subscription msg

#on Source

on :: forall msg. String -> EventHandler msg -> Subscription msg

#onKeyDown Source

onKeyDown :: forall msg. (String -> Maybe msg) -> Subscription msg

#onHashChange Source

onHashChange :: forall msg. (HashChangeEvent -> Maybe msg) -> Subscription msg