{-# LANGUAGE FlexibleContexts #-}
module Simulation.Aivika.Unboxed
(Unboxed(..)) where
import Data.Array
import Data.Array.IO.Safe
import Data.Int
import Data.Word
class MArray IOUArray e IO => Unboxed e where
newUnboxedArray_ :: Ix i => (i, i) -> IO (IOUArray i e)
newUnboxedArray_ = forall (a :: * -> * -> *) e (m :: * -> *) i.
(MArray a e m, Ix i) =>
(i, i) -> m (a i e)
newArray_
instance Unboxed Bool
instance Unboxed Char
instance Unboxed Double
instance Unboxed Float
instance Unboxed Int
instance Unboxed Int8
instance Unboxed Int16
instance Unboxed Int32
instance Unboxed Word
instance Unboxed Word8
instance Unboxed Word16
instance Unboxed Word32
instance Unboxed Int64
instance Unboxed Word64