Copyright | (c) Paweł Nowak |
---|---|
License | MIT |
Maintainer | Paweł Nowak <pawel834@gmail.com> |
Stability | experimental |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
- class (Monad m, Profunctor p) => Exposed m p | p -> m where
Documentation
class (Monad m, Profunctor p) => Exposed m p | p -> m where Source
Exposes structure of a Kleisli category beneath a profunctor.
Should obey laws:
merge . rmap return = id lmap return . expose = id rmap (>>= f) = merge . rmap (fmap f) lmap (fmap f) . expose = expose . lmap f