Parse errors on OverloadedRecordDot
Summary
OverloadedRecordDot rejects some Haskell keywords available as identifiers.
Steps to reproduce
> :set -XOverloadedRecordDot
ghci> undefined.as
<interactive>:11:11: error: parse error on input ‘as’
ghci> undefined.dependency
<interactive>:12:11: error: parse error on input ‘dependency’
ghci> undefined.signature
<interactive>:13:11: error: parse error on input ‘signature’
ghci> undefined.javascript
Expected behavior
The parser should accept as
, dependency
, signature
, javascript
Environment
- GHC version used: 9.2.1
Optional:
- Operating System:
- System Architecture: