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.SmallArray

Description

 

Documentation

data SmallConstArray s a Source #

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

Defined in Data.Const.Unsafe

Constable (SmallConstArray s :: Type -> Type) (SmallMutableArray s :: Type -> Type) Source # 
Instance details

Defined in Data.Const.Unsafe

Eq (SmallConstArray s a) Source # 
Instance details

Defined in Data.Const.Unsafe

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

sameSmallArray :: forall s p q a. (ASmallArray s p, ASmallArray s q) => p a -> q a -> Bool Source #

copyASmallArray :: forall m p a. (PrimMonad m, ASmallArray (PrimState m) p) => SmallMutableArray (PrimState m) a -> Int -> p a -> Int -> Int -> m () Source #

cloneASmallArray :: forall m p a. (PrimMonad m, ASmallArray (PrimState m) p) => p a -> Int -> Int -> m (SmallMutableArray (PrimState m) a) Source #

sizeofASmallArray :: forall s p a. ASmallArray s p => p a -> Int Source #