summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2022-01-11 10:35:50 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-01-11 19:48:15 -0500
commit92f3e6e4e30b853af304aa53f529af2c262419f1 (patch)
tree7f06e78d6c5e4e6c295101bfb79c0e775e4c57d2
parentc2099059eca2f5f0217256374834784f008b7602 (diff)
downloadhaskell-92f3e6e4e30b853af304aa53f529af2c262419f1.tar.gz
docs: MonadComprehension desugar using Alternative rather than MonadPlus
Fixes #20928
-rw-r--r--docs/users_guide/exts/monad_comprehensions.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/users_guide/exts/monad_comprehensions.rst b/docs/users_guide/exts/monad_comprehensions.rst
index 4ed99b1002..b4afbc1090 100644
--- a/docs/users_guide/exts/monad_comprehensions.rst
+++ b/docs/users_guide/exts/monad_comprehensions.rst
@@ -35,8 +35,8 @@ Monad comprehensions support:
[ x | x <- [1..10], x <= 5 ]
- Guards are translated with the ``guard`` function, which requires a
- ``MonadPlus`` instance: ::
+ Guards are translated with the ``guard`` function, which requires an
+ ``Alternative`` instance: ::
do x <- [1..10]
guard (x <= 5)