Content-Length: 22112 | pFad | http://hackage.haskell.org/package/lifted-base-0.2.0.5/docs/Data-IORef-Lifted.html

Data.IORef.Lifted

lifted-base-0.2.0.5: lifted IO operations from the base library

Stabilityexperimental
MaintainerBas van Dijk <v.dijk.bas@gmail.com>
Safe HaskellTrustworthy

Data.IORef.Lifted

Description

This is a wrapped version of Data.IORef with types generalised from IO to all monads in MonadBase.

Synopsis

Documentation

data IORef a

A mutable variable in the IO monad

Instances

newIORef :: MonadBase IO m => a -> m (IORef a)Source

Generalized version of newIORef.

readIORef :: MonadBase IO m => IORef a -> m aSource

Generalized version of readIORef.

writeIORef :: MonadBase IO m => IORef a -> a -> m ()Source

Generalized version of writeIORef.

modifyIORef :: MonadBase IO m => IORef a -> (a -> a) -> m ()Source

Generalized version of modifyIORef.

modifyIORef' :: MonadBase IO m => IORef a -> (a -> a) -> m ()Source

Generalized version of modifyIORef'.

atomicModifyIORef :: MonadBase IO m => IORef a -> (a -> (a, b)) -> m bSource

Generalized version of atomicModifyIORef.

atomicModifyIORef' :: MonadBase IO m => IORef a -> (a -> (a, b)) -> m bSource

Generalized version of atomicModifyIORef'.

mkWeakIORef :: MonadBaseControl IO m => IORef a -> m () -> m (Weak (IORef a))Source

Generalized version of mkWeakIORef.

Note any monadic side effects in m of the "finalizer" computation are discarded.









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://hackage.haskell.org/package/lifted-base-0.2.0.5/docs/Data-IORef-Lifted.html

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy