Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data IORef a
- newIORef :: MonadRunIOE e m => a -> m (IORef a)
- readIORef :: MonadRunIOE e m => IORef a -> m a
- writeIORef :: MonadRunIOE e m => IORef a -> a -> m ()
- modifyIORef :: MonadRunIOE e m => IORef a -> (a -> a) -> m ()
- modifyIORef' :: MonadRunIOE e m => IORef a -> (a -> a) -> m ()
- atomicModifyIORef :: MonadRunIOE e m => IORef a -> (a -> (a, b)) -> m b
- atomicModifyIORef' :: MonadRunIOE e m => IORef a -> (a -> (a, b)) -> m b
- atomicWriteIORef :: MonadRunIOE e m => IORef a -> a -> m ()
Documentation
A mutable variable in the IO
monad
newIORef :: MonadRunIOE e m => a -> m (IORef a) Source #
readIORef :: MonadRunIOE e m => IORef a -> m a Source #
writeIORef :: MonadRunIOE e m => IORef a -> a -> m () Source #
modifyIORef :: MonadRunIOE e m => IORef a -> (a -> a) -> m () Source #
modifyIORef' :: MonadRunIOE e m => IORef a -> (a -> a) -> m () Source #
atomicModifyIORef :: MonadRunIOE e m => IORef a -> (a -> (a, b)) -> m b Source #
atomicModifyIORef' :: MonadRunIOE e m => IORef a -> (a -> (a, b)) -> m b Source #
atomicWriteIORef :: MonadRunIOE e m => IORef a -> a -> m () Source #