aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/abstract/monad.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/library/lux/abstract/monad.lux4
1 files changed, 4 insertions, 0 deletions
diff --git a/stdlib/source/library/lux/abstract/monad.lux b/stdlib/source/library/lux/abstract/monad.lux
index ef7138593..567234801 100644
--- a/stdlib/source/library/lux/abstract/monad.lux
+++ b/stdlib/source/library/lux/abstract/monad.lux
@@ -44,6 +44,9 @@
#.Nil))
(interface: #export (Monad m)
+ {#.doc (doc "A monad is a monoid in the category of endofunctors."
+ "What's the problem?")}
+
(: (Functor m)
&functor)
(: (All [a]
@@ -108,6 +111,7 @@
(#.Left "Wrong syntax for 'do'")))
(def: #export (bind monad f)
+ {#.doc (doc "Apply a function with monadic effects to a monadic value and yield a new monadic value.")}
(All [! a b]
(-> (Monad !) (-> a (! b))
(-> (! a) (! b))))