Module

Specular.Internal.Effect

Package
purescript-specular
Repository
restaumatic/purescript-specular

#Ref Source

data Ref :: Type -> Type

#newRef Source

newRef :: forall a. a -> Effect (Ref a)

#readRef Source

readRef :: forall a. Ref a -> Effect a

#writeRef Source

writeRef :: forall a. Ref a -> a -> Effect Unit

#modifyRef Source

modifyRef :: forall a. Ref a -> (a -> a) -> Effect Unit

#DelayedEffects Source

Re-exports from Effect

#Effect Source

data Effect :: Type -> Type

A native effect. The type parameter denotes the return type of running the effect, that is, an Effect Int is a possibly-effectful computation which eventually produces a value of the type Int when it finishes.

Instances