monadic-arrays-0.2.0.2: Boxed and unboxed arrays for monad transformers

Portabilitytype families, MPTCs
Stabilityprovisional
MaintainerEdward Kmett <ekmett@gmail.com>
Safe HaskellSafe-Infered

Data.Array.MArray.Extras

Description

A higher-order MArray class.

Documentation

class Monad m => MArray1 a f m whereSource

Methods

getBounds1 :: Ix i => a i (f e) -> m (i, i)Source

getNumElements1 :: Ix i => a i (f e) -> m IntSource

newArray1 :: Ix i => (i, i) -> f e -> m (a i (f e))Source

newArray1_ :: Ix i => (i, i) -> m (a i (f e))Source

unsafeNewArray1_ :: Ix i => (i, i) -> m (a i (f e))Source

unsafeRead1 :: Ix i => a i (f e) -> Int -> m (f e)Source

unsafeWrite1 :: Ix i => a i (f e) -> Int -> f e -> m ()Source