keera-callbacks-0.1: Mutable memory locations with callbacks

Safe HaskellSafe-Inferred
LanguageHaskell98

Data.CBRef

Documentation

data CBRef a Source

newCBRef :: a -> IO (CBRef a) Source

writeCBRef :: CBRef a -> a -> IO () Source

modifyCBRef :: CBRef a -> (a -> a) -> IO () Source

atomicModifyCBRef :: CBRef a -> (a -> (a, b)) -> IO b Source