Module

Freedom.Subscription

Package
purescript-freedom
Repository
purescript-freedom/purescript-freedom

#Subscription Source

newtype Subscription f state

The type of subscription

Hooks of events that aren't related a specific node like window events, timers and so on.

#subscription Source

subscription :: forall state f. Functor (f state) => ((FreeT (f state) Aff Unit -> Aff Unit) -> Effect Unit) -> Subscription f state

A constructor function for Subscription.

#runSubscription Source

runSubscription :: forall state f. Functor (f state) => (FreeT (f state) Aff Unit -> Aff Unit) -> Subscription f state -> Effect Unit

This is for internal. Do not use it.