Open fosskers opened 5 years ago
I'll merge a patch which fixes it but these days I'm not going to spend any more time myself fixing problems with the parser.
Understood, thank you.
EDIT: got it wrong the first time.
Isn't the actual problem that it's falling through to that otherwise
on L808 in the first place? It should match on a previous case on L778:
Also in need of fixing here:
I decided to venture into no-man's land and define a type whose fields had non-ASCII names:
This compiles fine, but unfortunately
haskell-src-exts
(and thereforestylish-haskell
) is unable to process it:which is produced by this guard branch in
InternalLexer.hs
:https://github.com/haskell-suite/haskell-src-exts/blob/e0f2aa86d68b993f0a81633af467dc550b3e7270/src/Language/Haskell/Exts/InternalLexer.hs#L808-L830
Yes I'm evil for using UTF-8 field names, but we should still probably be able to parse these anyway, since they're legal as far as GHC is concerned.
Thoughts? Thanks for your on-going efforts.