Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- class (forall i. Contravariant left target (Flip v i), forall i. Covariant right target (v i)) => Divariant left right target v where
- (>->) :: left a b -> right c d -> target (v b c) (v a d)
Documentation
class (forall i. Contravariant left target (Flip v i), forall i. Covariant right target (v i)) => Divariant left right target v where Source #
When providing a new instance, you should ensure it satisfies: * Identity: identity >-> identity ≡ identity * Interpreted: f . g >-> h . i ≡ g >-> h . f >-> i
Instances
Divariant ((->) :: Type -> Type -> Type) ((->) :: Type -> Type -> Type) ((->) :: Type -> Type -> Type) Imprint Source # | |
Divariant ((->) :: Type -> Type -> Type) ((->) :: Type -> Type -> Type) ((->) :: Type -> Type -> Type) Environment Source # | |
Defined in Pandora.Paradigm.Inventory.Environment (>->) :: (a -> b) -> (c -> d) -> Environment b c -> Environment a d Source # | |
Divariant ((->) :: Type -> Type -> Type) ((->) :: Type -> Type -> Type) ((->) :: Type -> Type -> Type) ((->) :: Type -> Type -> Type) Source # | |