Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Documentation
class Divariant (v :: * -> * -> *) where Source #
When providing a new instance, you should ensure it satisfies the two laws: * Identity: dimap identity identity ≡ identity * Interpreted: dimap (f . g) (h . i) ≡ dimap g h . dimap f i