const-0: Read-only mutable primitives

Copyright(c) 2019 Edward Kmett
LicenseBSD-2-Clause OR Apache-2.0
MaintainerEdward Kmett <ekmett@gmail.com>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellTrustworthy
LanguageHaskell2010

Data.Const.Primitive.Array

Description

 

Documentation

data ConstArray s a Source #

Instances
Constable (ConstArray s :: Type -> Type) (ConstArray s :: Type -> Type) Source # 
Instance details

Defined in Data.Const.Unsafe

Constable (ConstArray s :: Type -> Type) (MutableArray s :: Type -> Type) Source # 
Instance details

Defined in Data.Const.Unsafe

Eq (ConstArray s a) Source # 
Instance details

Defined in Data.Const.Unsafe

Methods

(==) :: ConstArray s a -> ConstArray s a -> Bool #

(/=) :: ConstArray s a -> ConstArray s a -> Bool #

constArray :: AnArray s p => p a -> ConstArray s a Source #

readAnArray :: forall m p a. (PrimMonad m, AnArray (PrimState m) p) => p a -> Int -> m a Source #

sameArray :: forall s p q a. (AnArray s p, AnArray s q) => p a -> q a -> Bool 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 #