Skip to content

Support QualifiedDo for GHC>=9.0.1 #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

rinse
Copy link

@rinse rinse commented Jan 3, 2025

Support for -XQualifiedDo has been added in GHC versions >= 9.0.1.

The new module Control.Monad/Indexed/QualifiedDo provides the following functions:

  • >>=, >>, and fail for monadic operations.
  • fmap, <*>, and join to ensure compatibility with -XApplicativeDo.
  • mfix and return to ensure compatibility with -XRecursiveDo.

Additionally, a new typeclass, IxMonadFail, has been introduced in Control/Monad/Indexed/Fail to support fail.

The naming of the functions is based on the documentation:
https://ghc.gitlab.haskell.org/ghc/doc/users_guide/exts/qualified_do.html

I left the maintainer field blank but I’m ready to fill it with a specific name. Please inform me of the name you would like to use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant