twilight-stm-1.0: Twilight STM library
Counter
type Counter = MVar IntSource
getCounter :: CounterSource
mkCounter :: Int -> IO CounterSource
incr :: Counter -> IO ()Source
get :: Counter -> IO IntSource
getAndIncr :: Counter -> IO IntSource