Handle type data declarations in Template Haskell quotations and splices (fixes #22500)
This adds a TypeDataD constructor to the Template Haskell Dec type, and ensures that the constructors it contains go in the TyCls namespace.
Showing
- compiler/GHC/Builtin/Names/TH.hs 6 additions, 4 deletionscompiler/GHC/Builtin/Names/TH.hs
- compiler/GHC/HsToCore/Quote.hs 9 additions, 6 deletionscompiler/GHC/HsToCore/Quote.hs
- compiler/GHC/Rename/Module.hs 4 additions, 0 deletionscompiler/GHC/Rename/Module.hs
- compiler/GHC/Tc/Gen/Splice.hs 1 addition, 1 deletioncompiler/GHC/Tc/Gen/Splice.hs
- compiler/GHC/ThToHs.hs 74 additions, 41 deletionscompiler/GHC/ThToHs.hs
- libraries/template-haskell/Language/Haskell/TH/Lib.hs 11 additions, 3 deletionslibraries/template-haskell/Language/Haskell/TH/Lib.hs
- libraries/template-haskell/Language/Haskell/TH/Lib/Internal.hs 23 additions, 0 deletions...ries/template-haskell/Language/Haskell/TH/Lib/Internal.hs
- libraries/template-haskell/Language/Haskell/TH/Ppr.hs 6 additions, 0 deletionslibraries/template-haskell/Language/Haskell/TH/Ppr.hs
- libraries/template-haskell/Language/Haskell/TH/Syntax.hs 3 additions, 0 deletionslibraries/template-haskell/Language/Haskell/TH/Syntax.hs
- libraries/template-haskell/changelog.md 3 additions, 0 deletionslibraries/template-haskell/changelog.md
- testsuite/tests/type-data/should_compile/TD_TH_splice.hs 18 additions, 0 deletionstestsuite/tests/type-data/should_compile/TD_TH_splice.hs
- testsuite/tests/type-data/should_compile/all.T 1 addition, 0 deletionstestsuite/tests/type-data/should_compile/all.T
- testsuite/tests/type-data/should_run/T22500.hs 9 additions, 0 deletionstestsuite/tests/type-data/should_run/T22500.hs
- testsuite/tests/type-data/should_run/T22500.stdout 3 additions, 0 deletionstestsuite/tests/type-data/should_run/T22500.stdout
- testsuite/tests/type-data/should_run/all.T 1 addition, 0 deletionstestsuite/tests/type-data/should_run/all.T
Loading
Please register or sign in to comment