License | BSD-style (see the file LICENSE) |
---|---|
Maintainer | sjoerd@w3future.com |
Stability | experimental |
Portability | non-portable |
Safe Haskell | Safe |
Language | Haskell2010 |
Synopsis
- data Representable f repObj = Representable {
- representedFunctor :: f
- representingObject :: Obj (Dom f) repObj
- represent :: forall k z. (Dom f ~ k, Cod f ~ (->)) => Obj k z -> (f :% z) -> k repObj z
- universalElement :: forall k. (Dom f ~ k, Cod f ~ (->)) => f :% repObj
- unrepresent :: (Functor f, Dom f ~ k, Cod f ~ (->)) => Representable f repObj -> k repObj z -> f :% z
- covariantHomRepr :: Category k => Obj k x -> Representable (x :*-: k) x
- contravariantHomRepr :: Category k => Obj k x -> Representable (k :-*: x) x
- type InitialUniversal x u a = Representable ((x :*-: Cod u) :.: u) a
- initialUniversal :: Functor u => u -> Obj (Dom u) a -> Cod u x (u :% a) -> (forall y. Obj (Dom u) y -> Cod u x (u :% y) -> Dom u a y) -> InitialUniversal x u a
- type TerminalUniversal x u a = Representable ((Cod u :-*: x) :.: Opposite u) a
- terminalUniversal :: Functor u => u -> Obj (Dom u) a -> Cod u (u :% a) x -> (forall y. Obj (Dom u) y -> Cod u (u :% y) x -> Dom u y a) -> TerminalUniversal x u a
Documentation
data Representable f repObj Source #
Representable | |
|
unrepresent :: (Functor f, Dom f ~ k, Cod f ~ (->)) => Representable f repObj -> k repObj z -> f :% z Source #
covariantHomRepr :: Category k => Obj k x -> Representable (x :*-: k) x Source #
contravariantHomRepr :: Category k => Obj k x -> Representable (k :-*: x) x Source #
type InitialUniversal x u a = Representable ((x :*-: Cod u) :.: u) a Source #
initialUniversal :: Functor u => u -> Obj (Dom u) a -> Cod u x (u :% a) -> (forall y. Obj (Dom u) y -> Cod u x (u :% y) -> Dom u a y) -> InitialUniversal x u a Source #
An initial universal property, a universal morphism from x to u.
type TerminalUniversal x u a = Representable ((Cod u :-*: x) :.: Opposite u) a Source #