vector-sized-1.5.0: Size tagged vectors
Safe Haskell None
Language Haskell2010

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

gunfold :: ( forall b r. Data b => c (b -> r) -> c r) -> ( forall r. r -> c r) -> Constr -> c ( MVector v n s a) Source #

toConstr :: MVector v n s a -> Constr Source #

dataTypeOf :: MVector v n s a -> DataType Source #

dataCast1 :: Typeable t => ( forall d. Data d => c (t d)) -> Maybe (c ( MVector v n s a)) Source #

dataCast2 :: Typeable t => ( forall d e. ( Data d, Data e) => c (t d e)) -> Maybe (c ( MVector v n s a)) Source #

gmapT :: ( forall b. Data b => b -> b) -> MVector v n s a -> MVector v n s a Source #

gmapQl :: (r -> r' -> r) -> r -> ( forall d. Data d => d -> r') -> MVector v n s a -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> ( forall d. Data d => d -> r') -> MVector v n s a -> r Source #

gmapQ :: ( forall d. Data d => d -> u) -> MVector v n s a -> [u] Source #

gmapQi :: Int -> ( forall d. Data d => d -> u) -> MVector v n s a -> u Source #

gmapM :: Monad m => ( forall d. Data d => d -> m d) -> MVector v n s a -> m ( MVector v n s a) Source #

gmapMp :: MonadPlus m => ( forall d. Data d => d -> m d) -> MVector v n s a -> m ( MVector v n s a) Source #

gmapMo :: MonadPlus m => ( forall d. Data d => d -> m d) -> MVector v n s a -> m ( MVector v n s a) Source #

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

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

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