Module

Flame.External.Source

Package
purescript-flame
Repository
easafe/purescript-flame

#ToEventSource Source

type ToEventSource message = message -> Channel message -> Effect Unit

#ToSpecialEventSource Source

type ToSpecialEventSource message parameter = forall f. Applicative f => f (parameter -> message) -> Channel (f message) -> Effect Unit

#ToRawEventSource Source

type ToRawEventSource constructor = ToSpecialEventSource constructor Event

#ToEventSource_ Source

type ToEventSource_ message = EffectFn2 message (Channel message) Unit

#ToSpecialEventSource_ Source

type ToSpecialEventSource_ message parameter = forall f. Applicative f => EffectFn3 (parameter -> f (parameter -> message) -> f message) (f (parameter -> message)) (Channel (f message)) Unit

#ToRawEventSource_ Source

type ToRawEventSource_ constructor = ToSpecialEventSource_ constructor Event

#createEventSource Source

createEventSource :: forall message. ToEventSource_ message -> ToEventSource message

#createRawEventSource Source

createRawEventSource :: forall constructor. ToRawEventSource_ constructor -> ToRawEventSource constructor

#createSpecialEventSource Source

createSpecialEventSource :: forall constructor parameter. ToSpecialEventSource_ constructor parameter -> ToSpecialEventSource constructor parameter

#applyHandler Source

applyHandler :: forall f message parameter. Applicative f => parameter -> f (parameter -> message) -> f message

#send Source

send :: forall message. Array (Channel message -> Effect Unit) -> Channel message -> Effect Unit