Simulation.Aivika.RealTime.Ref.Base.Strict
Contents
Description
Tested with: GHC 8.0.1
The RT monad can be an instance of strict MonadRef.
RT
MonadRef
The RT monad is an instance of MonadRef.
Associated Types
data Ref (RT m) a #
Methods
newRef :: a -> Simulation (RT m) (Ref (RT m) a) #
readRef :: Ref (RT m) a -> Event (RT m) a #
writeRef :: Ref (RT m) a -> a -> Event (RT m) () #
modifyRef :: Ref (RT m) a -> (a -> a) -> Event (RT m) () #
equalRef :: Ref (RT m) a -> Ref (RT m) a -> Bool #
The RT monad is an instance of MonadRef0.
MonadRef0
newRef0 :: a -> RT m (Ref (RT m) a) #