pandora-0.2.7: A box of patterns and paradigms

Safe HaskellSafe
LanguageHaskell2010

Pandora.Pattern.Transformer.Hoistable

Synopsis

Documentation

class Hoistable t where Source #

When providing a new instance, you should ensure it satisfies one law:
* Identity morphism: hoist identity ≡ identity
* Interpreted of morphisms: hoist (f . g) ≡ hoist f . hoist g

Methods

hoist :: (u ~> v) -> t u ~> t v Source #

Instances
Hoistable (Backwards :: (k -> Type) -> k -> Type) Source # 
Instance details

Defined in Pandora.Paradigm.Primary.Transformer.Backwards

Methods

hoist :: (u ~> v) -> Backwards u ~> Backwards v Source #

Hoistable (Reverse :: (k -> Type) -> k -> Type) Source # 
Instance details

Defined in Pandora.Paradigm.Primary.Transformer.Reverse

Methods

hoist :: (u ~> v) -> Reverse u ~> Reverse v Source #

Covariant t => Hoistable (TU Covariant Covariant t :: (k -> Type) -> k -> Type) Source # 
Instance details

Defined in Pandora.Paradigm.Controlflow.Joint.Schemes.TU