vinyl-0.14.3: Extensible Records
Safe HaskellNone
LanguageHaskell2010

Data.Vinyl.ARec.Internal.SmallArray

Description

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 #

Constructors

SmallArray !(SmallArray# (Any :: Type)) 

data SmallMutableArray s Source #

Constructors

SmallMutableArray !(SmallMutableArray# s (Any :: Type)) 

withNewSmallArray :: Int -> (SmallMutableArray s -> ST s ()) -> ST s SmallArray Source #

writeSmallArray :: SmallMutableArray s -> Int -> a -> ST s () Source #