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
- Host: GitHub
- URL: https://github.com/konn/ghc-qualified-do-plugin
- Owner: konn
- License: bsd-3-clause
- Created: 2021-02-02T15:52:02.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-02-02T15:52:14.000Z (over 4 years ago)
- Last Synced: 2025-01-23T17:21:12.755Z (4 months ago)
- Language: Haskell
- Size: 6.84 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog.md
- License: LICENSE
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.