diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2022-01-11 10:35:50 +0000 |
---|---|---|
committer | Matthew Pickering <matthewtpickering@gmail.com> | 2022-01-11 10:36:33 +0000 |
commit | 1142f11bbe2a80b931be0788bf437fffcad9d98d (patch) | |
tree | 2cb3db9a7f4a54461f105f8d059ed2e8c84dd169 | |
parent | f583eb8e5e7077f77fba035a454fafd945d4a4ea (diff) | |
download | haskell-wip/mc-docs.tar.gz |
docs: MonadComprehension desugar using Alternative rather than MonadPluswip/mc-docs
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) |