vector-sized-1.0.0.0: Size tagged vectors
Data.Vector.Generic.Mutable.Sized.Internal
Synopsis
newtype MVector v (n :: Nat) s a Source #
A wrapper to tag mutable vectors with a type level length.
Be careful when using the constructor here to not construct sized vectors which have a different length than that specified in the type parameter!
Constructors
Instances
Methods
gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> MVector v n s a -> c (MVector v n s a) #
gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (MVector v n s a) #
toConstr :: MVector v n s a -> Constr #
dataTypeOf :: MVector v n s a -> DataType #
dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c (MVector v n s a)) #
dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (MVector v n s a)) #
gmapT :: (forall b. Data b => b -> b) -> MVector v n s a -> MVector v n s a #
gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> MVector v n s a -> r #
gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> MVector v n s a -> r #
gmapQ :: (forall d. Data d => d -> u) -> MVector v n s a -> [u] #
gmapQi :: Int -> (forall d. Data d => d -> u) -> MVector v n s a -> u #
gmapM :: Monad m => (forall d. Data d => d -> m d) -> MVector v n s a -> m (MVector v n s a) #
gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> MVector v n s a -> m (MVector v n s a) #
gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> MVector v n s a -> m (MVector v n s a) #
Associated Types
type Rep (MVector v n s a) :: * -> * #
from :: MVector v n s a -> Rep (MVector v n s a) x #
to :: Rep (MVector v n s a) x -> MVector v n s a #
sizeOf :: MVector v n s a -> Int #
alignment :: MVector v n s a -> Int #
peekElemOff :: Ptr (MVector v n s a) -> Int -> IO (MVector v n s a) #
pokeElemOff :: Ptr (MVector v n s a) -> Int -> MVector v n s a -> IO () #
peekByteOff :: Ptr b -> Int -> IO (MVector v n s a) #
pokeByteOff :: Ptr b -> Int -> MVector v n s a -> IO () #
peek :: Ptr (MVector v n s a) -> IO (MVector v n s a) #
poke :: Ptr (MVector v n s a) -> MVector v n s a -> IO () #
rnf :: MVector v n s a -> () #