Copyright | (C) Keera Studios Ltd 2013 |
---|---|
License | BSD3 |
Maintainer | support@keera.co.uk |
Safe Haskell | Safe |
Language | Haskell2010 |
MVars as Reactive Values.
CBMVars are MVars enriched with a notion of callbacks that are executed when the value in the MVar is altered.
This module wraps CBMVars into reactive values, making it easy to use them as models of reactive applications.
Synopsis
- cbmvarReactiveRO :: CBMVar a -> ReactiveFieldRead IO a
- cbmvarReactiveRW :: CBMVar a -> ReactiveFieldReadWrite IO a
Documentation
cbmvarReactiveRO :: CBMVar a -> ReactiveFieldRead IO a Source #
Return a read-only reactive value wrapping a CBMVar.
cbmvarReactiveRW :: CBMVar a -> ReactiveFieldReadWrite IO a Source #
Return a read-write reactive value wrapping a CBMVar.