diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2022-01-11 10:35:50 +0000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-01-11 19:48:15 -0500 |
commit | 92f3e6e4e30b853af304aa53f529af2c262419f1 (patch) | |
tree | 7f06e78d6c5e4e6c295101bfb79c0e775e4c57d2 | |
parent | c2099059eca2f5f0217256374834784f008b7602 (diff) | |
download | haskell-92f3e6e4e30b853af304aa53f529af2c262419f1.tar.gz |
docs: MonadComprehension desugar using Alternative rather than MonadPlus
Fixes #20928
-rw-r--r-- | docs/users_guide/exts/monad_comprehensions.rst | 4 |
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) |