vector-sized-1.4.1.0: Size tagged vectors
Safe HaskellNone
LanguageHaskell2010

Data.Vector.Generic.Mutable.Sized.Internal

Synopsis

Documentation

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

MVector (v s a) 

Instances

Instances details
(KnownNat n, Typeable v, Typeable s, Typeable a, Data (v s a)) => Data (MVector v n s a) Source # 
Instance details

Defined in Data.Vector.Generic.Mutable.Sized.Internal

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 :: forall r r'. (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) #

Storable (v s a) => Storable (MVector v n s a) Source # 
Instance details

Defined in Data.Vector.Generic.Mutable.Sized.Internal

Methods

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 () #

NFData (v s a) => NFData (MVector v n s a) Source # 
Instance details

Defined in Data.Vector.Generic.Mutable.Sized.Internal

Methods

rnf :: MVector v n s a -> () #