Safe Haskell | None |
---|---|
Language | Haskell2010 |
Helper functions for SmallArray#
This module exposes _unsafe_ functions to work with SmallArrays. That means that specifically neither index bounds nor element types are checked So this functionality should only be used in a context that enforces them by some other means, e.g. ARec's type index
Documentation
data SmallArray Source #
data SmallMutableArray s Source #
indexSmallArray :: SmallArray -> Int -> a Source #
withNewSmallArray :: Int -> (SmallMutableArray s -> ST s ()) -> ST s SmallArray Source #
writeSmallArray :: SmallMutableArray s -> Int -> a -> ST s () Source #
withThawedSmallArray :: SmallArray -> (SmallMutableArray s -> ST s ()) -> ST s SmallArray Source #