Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- class IsoProfunctor p where
Documentation
class IsoProfunctor p where Source #
Class IsoProfunctor
represents a profunctor from Iso
-> Hask
(?)
dimap
id
id
≡id
lmap
id
≡id
rmap
id
≡id
dimap
f g ≡lmap
f.
rmap
g
dimap
(f.
g) (h.
i) ≡dimap
g h.
dimap
f ilmap
(f.
g) ≡lmap
g.
lmap
frmap
(f.
g) ≡rmap
f.
rmap
g
dimap :: (a <-> b) -> (c <-> d) -> p b c -> p a d Source #
IsoProfunctor (Bijection (->)) Source # | |
IsoProfunctor b => IsoProfunctor (FreeA b) Source # | |