shithub: MicroHs

ref: 6a67714e02cd9cd49377591c39f03bb1f06814f7
dir: /lib/Data/IOArray.hs/

View raw version
module Data.IOArray(module Data.IOArray, IOArray) where
import Prelude()              -- do not import Prelude
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