Copyright | (c) 2019 Edward Kmett |
---|---|
License | BSD-2-Clause OR Apache-2.0 |
Maintainer | Edward Kmett <ekmett@gmail.com> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | Trustworthy |
Language | Haskell2010 |
Documentation
data ConstArray s a Source #
Instances
Constable (ConstArray s :: Type -> Type) (ConstArray s :: Type -> Type) Source # | |
Defined in Data.Const.Unsafe | |
Constable (ConstArray s :: Type -> Type) (MutableArray s :: Type -> Type) Source # | |
Defined in Data.Const.Unsafe | |
Eq (ConstArray s a) Source # | |
Defined in Data.Const.Unsafe (==) :: ConstArray s a -> ConstArray s a -> Bool # (/=) :: ConstArray s a -> ConstArray s a -> Bool # |
constArray :: AnArray s p => p a -> ConstArray s a Source #
type AnArray s = Constable (ConstArray s) Source #
readAnArray :: forall m p a. (PrimMonad m, AnArray (PrimState m) p) => p a -> Int -> m a Source #
copyAnArray :: forall m p a. (PrimMonad m, AnArray (PrimState m) p) => MutableArray (PrimState m) a -> Int -> p a -> Int -> Int -> m () Source #
cloneAnArray :: forall m p a. (PrimMonad m, AnArray (PrimState m) p) => p a -> Int -> Int -> m (MutableArray (PrimState m) a) Source #
sizeofAnArray :: forall s p a. AnArray s p => p a -> Int Source #