License | BSD-style |
---|---|
Maintainer | Vincent Hanquez <[email protected]> |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Common part for vectors
Synopsis
- data OutOfBound = OutOfBound OutOfBoundOperation Int Int
- data OutOfBoundOperation
- isOutOfBound :: Offset ty -> CountOf ty -> Bool
- outOfBound :: OutOfBoundOperation -> Offset ty -> CountOf ty -> a
- primOutOfBound :: PrimMonad prim => OutOfBoundOperation -> Offset ty -> CountOf ty -> prim a
- data InvalidRecast = InvalidRecast RecastSourceSize RecastDestinationSize
- newtype RecastSourceSize = RecastSourceSize Int
- newtype RecastDestinationSize = RecastDestinationSize Int
- data NonEmptyCollectionIsEmpty = NonEmptyCollectionIsEmpty
Documentation
data OutOfBound Source #
Exception during an operation accessing the vector out of bound
Represent the type of operation, the index accessed, and the total length of the vector.
Instances
Exception OutOfBound Source # | |
Defined in Basement.Exception | |
Show OutOfBound Source # | |
Defined in Basement.Exception |
data OutOfBoundOperation Source #
The type of operation that triggers an OutOfBound exception.
- OOB_Index: reading an immutable vector
- OOB_Read: reading a mutable vector
- OOB_Write: write a mutable vector
- OOB_MemCopy: copying a vector
- OOB_MemSet: initializing a mutable vector
Instances
Show OutOfBoundOperation Source # | |
Defined in Basement.Exception | |
Eq OutOfBoundOperation Source # | |
Defined in Basement.Exception (==) :: OutOfBoundOperation -> OutOfBoundOperation -> Bool Source # (/=) :: OutOfBoundOperation -> OutOfBoundOperation -> Bool Source # |
outOfBound :: OutOfBoundOperation -> Offset ty -> CountOf ty -> a Source #
primOutOfBound :: PrimMonad prim => OutOfBoundOperation -> Offset ty -> CountOf ty -> prim a Source #
data InvalidRecast Source #
Instances
Exception InvalidRecast Source # | |
Defined in Basement.Exception | |
Show InvalidRecast Source # | |
Defined in Basement.Exception |
newtype RecastSourceSize Source #
Instances
Show RecastSourceSize Source # | |
Defined in Basement.Exception | |
Eq RecastSourceSize Source # | |
Defined in Basement.Exception (==) :: RecastSourceSize -> RecastSourceSize -> Bool Source # (/=) :: RecastSourceSize -> RecastSourceSize -> Bool Source # |
newtype RecastDestinationSize Source #
Instances
Show RecastDestinationSize Source # | |
Defined in Basement.Exception | |
Eq RecastDestinationSize Source # | |
Defined in Basement.Exception |
data NonEmptyCollectionIsEmpty Source #
Exception for using NonEmpty assertion with an empty collection