fast-logger-2.0.2: A fast logging system

Safe HaskellSafe-Inferred

System.Log.FastLogger.IORef

Synopsis

Documentation

data IORef a

A mutable variable in the IO monad

Instances

Eq (IORef a) 

newIORef :: a -> IO (IORef a)

Build a new IORef

readIORef :: IORef a -> IO a

Read the value of an IORef

atomicModifyIORef' :: IORef a -> (a -> (a, b)) -> IO b

Strict version of atomicModifyIORef. This forces both the value stored in the IORef as well as the value returned.