Add documentation header to monad module

This commit is contained in:
Frederik Hanghøj Iversen 2018-03-12 14:11:31 +01:00
parent aa645fb11e
commit 8dadfa22a0

View file

@ -1,3 +1,21 @@
{---
Monads
This module presents two formulations of monads:
* The standard monoidal presentation
* Kleisli's presentation
The first one defines a monad in terms of an endofunctor and two natural
transformations. The second defines it in terms of a function on objects and a
pair of arrows.
These two formulations are proven to be equivalent:
Monoidal.Monad Kleisli.Monad
---}
{-# OPTIONS --cubical --allow-unsolved-metas #-} {-# OPTIONS --cubical --allow-unsolved-metas #-}
module Cat.Category.Monad where module Cat.Category.Monad where