vector-sized-1.1.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

(Data (v s a), Typeable * a, Typeable * s, Typeable (* -> * -> *) v, KnownNat n) => Data (MVector v n s a) Source # 

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

Generic (MVector v n s a) Source # 

Associated Types

type Rep (MVector v n s a) :: * -> * #

Methods

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 #

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

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 # 

Methods

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

type Rep (MVector v n s a) Source # 
type Rep (MVector v n s a) = D1 * (MetaData "MVector" "Data.Vector.Generic.Mutable.Sized.Internal" "vector-sized-1.1.1.0-KY0U5IYTyDh6WNwg1K0nFZ" True) (C1 * (MetaCons "MVector" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (v s a))))