Module

Specular.Internal.Incremental

Package
purescript-specular
Repository
restaumatic/purescript-specular

#globalRecomputeQueue Source

globalRecomputeQueue :: PQ SomeNode

Priority queue for propagating node changes in dependency order.

#Var Source

newtype Var a

Constructors

#newVar Source

newVar :: forall a. EffectFn1 a (Var a)

#setVar Source

setVar :: forall a. EffectFn2 (Var a) a Unit

#readVar Source

readVar :: forall a. Var a -> Node a

#Event Source

newtype Event a

Constructors

#newEvent Source

newEvent :: forall a. Effect (Event a)

#triggerEvent Source

triggerEvent :: forall a. EffectFn2 (Event a) a Unit

#readEvent Source

readEvent :: forall a. Event a -> Node a

#addObserver Source

addObserver :: forall a. EffectFn2 (Node a) (Observer a) Unit

#removeObserver Source

#addDependent Source

#removeDependent Source

#handleRefcountChange Source

#connect Source

connect :: forall a. EffectFn1 (Node a) Unit

#disconnect Source

disconnect :: forall a. EffectFn1 (Node a) Unit

#constant Source

constant :: forall a. EffectFn1 a (Node a)

#map Source

map :: forall a b. EffectFn2 (a -> b) (Node a) (Node b)

#mapOptional Source

mapOptional :: forall a b. EffectFn2 (a -> Optional b) (Node a) (Node b)

#map2 Source

map2 :: forall a b c. EffectFn3 (Fn2 a b c) (Node a) (Node b) (Node c)

#bind_ Source

bind_ :: forall a b. EffectFn2 (Node a) (a -> Node b) (Node b)

#switch Source

switch :: forall a b. EffectFn3 Boolean (Node a) (a -> Node b) (Node b)

#fold Source

fold :: forall a b. EffectFn3 (Fn2 a b (Optional b)) b (Node a) (Node b)

#sample Source

sample :: forall a b c. EffectFn3 (Fn2 a b (Optional c)) (Node a) (Node b) (Node c)

#leftmost Source

leftmost :: forall a. EffectFn1 (Array (Node a)) (Node a)

#traceChanges Source

traceChanges :: forall a. EffectFn2 (EffectFn1 a Unit) (Node a) (Node a)

#ensureHeight Source

#effectCrash Source

effectCrash :: forall a. String -> Effect a