Don't allow . in overloaded labels
This patch removes . from the list of allowed characters in a non-quoted overloaded label, as it was realised this steals syntax, e.g. (#.). Users who want this functionality will have to add quotes around the label, e.g. `#"17.28"`. Fixes #22821
Showing
- compiler/GHC/Parser/Lexer.x 1 addition, 2 deletionscompiler/GHC/Parser/Lexer.x
- docs/users_guide/9.6.1-notes.rst 1 addition, 1 deletiondocs/users_guide/9.6.1-notes.rst
- testsuite/tests/overloadedrecflds/should_run/T11671_run.hs 4 additions, 3 deletionstestsuite/tests/overloadedrecflds/should_run/T11671_run.hs
- testsuite/tests/printer/Test22771.hs 4 additions, 3 deletionstestsuite/tests/printer/Test22771.hs
Please register or sign in to comment