Make INLINE pragmas for pattern synonyms work with TH
Previously, the code for converting `INLINE <name>` pragmas from TH splices used `vNameN`, which assumed that `<name>` must live in the variable namespace. Pattern synonyms, on the other hand, live in the constructor namespace. I've fixed the issue by switching to `vcNameN` instead, which works for both the variable and constructor namespaces. Fixes #23203.
Showing
- compiler/GHC/ThToHs.hs 4 additions, 1 deletioncompiler/GHC/ThToHs.hs
- testsuite/tests/th/T23203.hs 30 additions, 0 deletionstestsuite/tests/th/T23203.hs
- testsuite/tests/th/T23203.stderr 28 additions, 0 deletionstestsuite/tests/th/T23203.stderr
- testsuite/tests/th/all.T 1 addition, 0 deletionstestsuite/tests/th/all.T
Loading
Please register or sign in to comment