aivika-transformers-6.0.0: Transformers for the Aivika simulation library
CopyrightCopyright (c) 2009-2017 David Sorokin <david.sorokin@gmail.com>
LicenseBSD3
MaintainerDavid Sorokin <david.sorokin@gmail.com>
Stabilityexperimental
Safe HaskellSafe-Inferred
LanguageHaskell2010

Simulation.Aivika.IO.Ref.Base.Lazy

Description

Tested with: GHC 8.0.1

The IO monad in an instance of lazy MonadRef.

Orphan instances

MonadRef IO Source #

IO is an instance of MonadRef.

Instance details

Associated Types

data Ref IO a Source #

Methods

newRef :: a -> Simulation IO (Ref IO a) Source #

readRef :: Ref IO a -> Event IO a Source #

writeRef :: Ref IO a -> a -> Event IO () Source #

modifyRef :: Ref IO a -> (a -> a) -> Event IO () Source #

equalRef :: Ref IO a -> Ref IO a -> Bool Source #

MonadRef0 IO Source #

IO is an instance of MonadRef0.

Instance details

Methods

newRef0 :: a -> IO (Ref IO a) Source #