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 SmallConstArray s a Source #
Instances
Constable (SmallConstArray s :: Type -> Type) (SmallConstArray s :: Type -> Type) Source # | |
Defined in Data.Const.Unsafe | |
Constable (SmallConstArray s :: Type -> Type) (SmallMutableArray s :: Type -> Type) Source # | |
Defined in Data.Const.Unsafe | |
Eq (SmallConstArray s a) Source # | |
Defined in Data.Const.Unsafe (==) :: SmallConstArray s a -> SmallConstArray s a -> Bool # (/=) :: SmallConstArray s a -> SmallConstArray s a -> Bool # |
smallConstArray :: ASmallArray s p => p a -> SmallConstArray s a Source #
type ASmallArray s = Constable (SmallConstArray s) Source #
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 #