An open API service indexing awesome lists of open source software.

https://github.com/konn/ghc-qualified-do-plugin

A Dumb Source Plugin to use QualifiedDo-like syntax with GHC <9
https://github.com/konn/ghc-qualified-do-plugin

Last synced: 2 months ago
JSON representation

A Dumb Source Plugin to use QualifiedDo-like syntax with GHC <9

Awesome Lists containing this project

README

        

# ghc-qualified-do-plugin
GHC Source Plugin to emulate `QualifiedDo` extension in GHC <9.0.

Due to how GHC parse expressions, this gives slightly different syntax than in GHC >= 9.0.
In particular, `M.do` must be written `M . do`, `M. do`, or `M .do` to parse it as an infix application of `(.)` to `M` and `do`; this is because Source Plugin can treat only valid Haskell input.