twilight-stm-1.1: STM library with safe irrevocable I/O and inconsistency repair
Control.Concurrent.STM.Counter
type Counter = IORef IntSource
getCounter :: CounterSource
mkCounter :: Int -> IO CounterSource
incr :: Counter -> IO ()Source
get :: Counter -> IO IntSource
getAndIncr :: Counter -> IO IntSource