shithub: MicroHs

ref: 539ad1650abfd06834f86d3ad291f5b20ff4d3d6
dir: /lib/Data/IOArray.hs/

View raw version
module Data.IOArray(module Data.IOArray, IOArray) where
import Primitives

-- data IOArray

newIOArray :: forall a . Int -> a -> IO (IOArray a)
newIOArray = primArrAlloc

sizeIOArray :: forall a . IOArray a -> IO Int
sizeIOArray = primArrSize

readIOArray :: forall a . IOArray a -> Int -> IO a
readIOArray = primArrRead

writeIOArray :: forall a . IOArray a -> Int -> a -> IO ()
writeIOArray = primArrWrite