Stability | experimental |
---|---|

Maintainer | David Sorokin <david.sorokin@gmail.com> |

Safe Haskell | Safe-Inferred |

Tested with: GHC 7.0.3

This module defines an updatable reference that depends on the event queue.

- data Ref a
- refQueue :: Ref a -> EventQueue
- refChanged :: Ref a -> Signal a
- refChanged_ :: Ref a -> Signal ()
- newRef :: EventQueue -> a -> Simulation (Ref a)
- readRef :: Ref a -> Dynamics a
- writeRef :: Ref a -> a -> Dynamics ()
- modifyRef :: Ref a -> (a -> a) -> Dynamics ()

# Documentation

refQueue :: Ref a -> EventQueueSource

Return the bound event queue.

refChanged :: Ref a -> Signal aSource

Return a signal that notifies about every change of the reference state.

refChanged_ :: Ref a -> Signal ()Source

Return a signal that notifies about every change of the reference state.

newRef :: EventQueue -> a -> Simulation (Ref a)Source

Create a new reference bound to the specified event queue.