| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Proarrow.Category.Instance.Unit
Contents
Description
The terminal category: the unit kind () with its single object '() and only the
identity arrow Unit.
Documentation
data Unit (a :: ()) (b :: ()) where Source Github #
Instances
| DaggerProfunctor Unit Source Github # | |||||
| Promonad Unit Source Github # | |||||
| Finitary Unit Source Github # | The one-object category has one arrow. | ||||
Defined in Proarrow.Category.Enriched.Finitary Methods size :: forall (a :: ()) (b :: ()). (Ob a, Ob b) => Natural Source Github # toIndex :: forall (a :: ()) (b :: ()). (Ob a, Ob b) => Unit a b -> Natural Source Github # fromIndex :: forall (a :: ()) (b :: ()). (Ob a, Ob b) => Natural -> Unit a b Source Github # elements :: forall (a :: ()) (b :: ()). (Ob a, Ob b) => [Unit a b] Source Github # | |||||
| DecidableProfunctor Unit Source Github # | |||||
Defined in Proarrow.Category.Instance.Unit Associated Types
| |||||
| ThinProfunctor Unit Source Github # | |||||
Defined in Proarrow.Category.Instance.Unit Associated Types
| |||||
| MonoidalProfunctor Unit Source Github # | |||||
| Profunctor Unit Source Github # | |||||
Defined in Proarrow.Category.Instance.Unit Methods dimap :: forall (c :: ()) (a :: ()) (b :: ()) (d :: ()). (c ~> a) -> (b ~> d) -> Unit a b -> Unit c d Source Github # lmap :: forall (c :: ()) (a :: ()) (b :: ()). (c ~> a) -> Unit a b -> Unit c b Source Github # rmap :: forall (b :: ()) (d :: ()) (a :: ()). (b ~> d) -> Unit a b -> Unit a d Source Github # (\\) :: forall (a :: ()) (b :: ()) r. ((Ob a, Ob b) => r) -> Unit a b -> r Source Github # | |||||
| type HasArrow Unit (a :: ()) (b :: ()) Source Github # | |||||
Defined in Proarrow.Category.Instance.Unit | |||||
| type Holds Unit (a :: ()) (b :: ()) Source Github # | |||||
Defined in Proarrow.Category.Instance.Unit | |||||
Orphan instances
| Enumerable () Source Github # | |||||||||
| Finite () Source Github # | |||||||||
| Indexed () Source Github # | |||||||||
Associated Types
| |||||||||
| CategoryOf () Source Github # | The category with one object, the terminal category. | ||||||||
Associated Types
| |||||||||