1 {-# LANGUAGE ScopedTypeVariables #-}
3 module RMCA.Auxiliary.RV where
6 import Data.ReactiveValue
8 newCBMVarRW :: forall a. a -> IO (ReactiveFieldReadWrite IO a)
12 getter = readCBMVar mvar
14 setter = writeCBMVar mvar
15 notifier :: IO () -> IO ()
16 notifier = installCallbackCBMVar mvar
17 return $ ReactiveFieldReadWrite setter getter notifier