Copyright | (C) 2015 Edward Kmett |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | Edward Kmett <ekmett@gmail.com> |
Stability | experimental |
Portability | non-portable, MPTCs, fundeps |
Safe Haskell | Safe |
Language | Haskell2010 |
Synopsis
- class (ProfunctorFunctor f, ProfunctorFunctor u) => ProfunctorAdjunction f u | f -> u, u -> f where
- unit :: Profunctor p => p :-> u (f p)
- counit :: Profunctor p => f (u p) :-> p
Documentation
class (ProfunctorFunctor f, ProfunctorFunctor u) => ProfunctorAdjunction f u | f -> u, u -> f where #
unit :: Profunctor p => p :-> u (f p) #
counit :: Profunctor p => f (u p) :-> p #
Instances
ProfunctorAdjunction Copastro Cotambara # | |
Defined in Data.Profunctor.Strong | |
ProfunctorAdjunction Pastro Tambara # | |
Defined in Data.Profunctor.Strong | |
ProfunctorAdjunction Environment Closure # | |
Defined in Data.Profunctor.Closed unit :: Profunctor p => p :-> Closure (Environment p) # counit :: Profunctor p => Environment (Closure p) :-> p # | |
ProfunctorAdjunction CopastroSum CotambaraSum # | |
Defined in Data.Profunctor.Choice unit :: Profunctor p => p :-> CotambaraSum (CopastroSum p) # counit :: Profunctor p => CopastroSum (CotambaraSum p) :-> p # | |
ProfunctorAdjunction PastroSum TambaraSum # | |
Defined in Data.Profunctor.Choice unit :: Profunctor p => p :-> TambaraSum (PastroSum p) # counit :: Profunctor p => PastroSum (TambaraSum p) :-> p # | |
ProfunctorAdjunction (Procompose p) (Rift p) # | |
Defined in Data.Profunctor.Composition unit :: Profunctor p0 => p0 :-> Rift p (Procompose p p0) # counit :: Profunctor p0 => Procompose p (Rift p p0) :-> p0 # |