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

Copyright(C) 2011 Edward Kmett
LicenseBSD-style (see the file LICENSE)
MaintainerEdward Kmett <ekmett@gmail.com>
Stabilityprovisional
Portabilitytype families, MPTCs
Safe HaskellNone
LanguageHaskell98

Data.Array.MArray.Extras

Description

A higher-order MArray class.

Documentation

class Monad m => MArray1 a f m where Source

Methods

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

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

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