Module

Yoga.Om.Ref

Package
purescript-yoga-om
Repository
rowtype-yoga/purescript-yoga-om

#new Source

new :: forall m s. MonadEffect m => s -> m (Ref s)

#read Source

read :: forall m s. MonadEffect m => Ref s -> m s

#modify' Source

modify' :: forall m s b. MonadEffect m => (s -> { state :: s, value :: b }) -> Ref s -> m b

#modify Source

modify :: forall m s. MonadEffect m => (s -> s) -> Ref s -> m s

#modify_ Source

modify_ :: forall m s. MonadEffect m => (s -> s) -> Ref s -> m Unit

#write Source

write :: forall m s. MonadEffect m => s -> Ref s -> m Unit

Re-exports from Effect.Ref

#Ref Source

data Ref t0

A value of type Ref a represents a mutable reference which holds a value of type a.