stateful-mtl-1.0.3: Stateful monad transformers with pure evaluation semantics.Source codeContentsIndex
Control.Monad.Array.IntMap
Description
A module implementing the array abstraction on a purely functional IntMap. When attempting to debug a complex array-using algorithm, it may sometimes be useful to use a less segfault-prone implementation. In addition, the execXXX commands allow the final state of the IntMap to be returned.
Synopsis
data IntMapT e m a
data IntMapM e a
evalIntMapT :: Monad m => e -> IntMapT e m a -> m a
evalIntMapM :: e -> IntMapM e a -> a
execIntMapT :: Monad m => e -> IntMapT e m a -> m (IntMap e)
execIntMapM :: e -> IntMapM e a -> IntMap e
execIntMapT_ :: Monad m => IntMapT e m a -> m (IntMap e)
evalIntMapT_ :: Monad m => IntMapT e m a -> m a
Documentation
data IntMapT e m a Source
An array transformer with an IntMap on the back end. Provides decent performance while retaining a purely functional back end. Note: resizing operations have no effect, and the getSize operation returns the number of associations in the IntMap.
show/hide Instances
data IntMapM e a Source
Basic monad version of IntMapT.
show/hide Instances
evalIntMapT :: Monad m => e -> IntMapT e m a -> m aSource
Evaluates an IntMapT computation with the specified default element.
evalIntMapM :: e -> IntMapM e a -> aSource
execIntMapT :: Monad m => e -> IntMapT e m a -> m (IntMap e)Source
Evaluates an IntMapT computation with the specified default element, returning the final IntMap.
execIntMapM :: e -> IntMapM e a -> IntMap eSource
execIntMapT_ :: Monad m => IntMapT e m a -> m (IntMap e)Source
Evaluates an IntMapT computation with no default element specified, returning the final IntMap.
evalIntMapT_ :: Monad m => IntMapT e m a -> m aSource
Evaluates an IntMapT computation with no default element specified.
Produced by Haddock version 2.4.1