effect-monad-0.8.1.0: Embeds effect systems and program logics into Haskell using graded monads and parameterised monads
Control.Effect.Vector
data Z Source #
Instances
data S n Source #
data Vector n a where Source #
Constructors
Associated Types
type Unit Vector (m :: Vector -> * -> *) :: k Source #
type Plus Vector (m :: Vector -> * -> *) (f :: Vector) (g :: Vector) :: k Source #
type Inv Vector (m :: Vector -> * -> *) (f :: Vector) (g :: Vector) :: Constraint Source #
Methods
return :: a -> m (Unit Vector m) a Source #
(>>=) :: Inv Vector m f g => m f a -> (a -> m g b) -> m (Plus Vector m f g) b Source #
(>>) :: Inv Vector m f g => m f a -> m g b -> m (Plus Vector m f g) b Source #
type family Add s t Source #
append :: Vector n a -> Vector m a -> Vector (Add n m) a Source #