Skip to content

Support QualifiedDo for GHC>=9.0.1 - #11

Open
rinse wants to merge 4 commits into
reinerp:masterfrom
rinse:qualifieddo
Open

Support QualifiedDo for GHC>=9.0.1#11
rinse wants to merge 4 commits into
reinerp:masterfrom
rinse:qualifieddo

Conversation

@rinse

@rinse rinse commented Jan 3, 2025

Copy link
Copy Markdown

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