Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Pandora.Pattern.Functor.Divariant
Synopsis
- class (forall i. Contravariant (Flip v i) left target, forall i. Covariant (v i) right target) => Divariant v left right target where
- (>->) :: left a b -> right c d -> target (v b c) (v a d)
Documentation
class (forall i. Contravariant (Flip v i) left target, forall i. Covariant (v i) right target) => Divariant v left right target 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 Imprint ((->) :: Type -> Type -> Type) ((->) :: Type -> Type -> Type) ((->) :: Type -> Type -> Type) Source # | |
Divariant Environment ((->) :: Type -> Type -> Type) ((->) :: Type -> Type -> Type) ((->) :: Type -> Type -> Type) Source # | |
Defined in Pandora.Paradigm.Inventory.Environment Methods (>->) :: (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 # | |