Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC
Commits:
-
126ce574
by Vladislav Zavialov at 2026-08-05T14:55:05-04:00
2 changed files:
Changes:
| 1 | +{-# LANGUAGE TemplateHaskell #-}
|
|
| 2 | + |
|
| 3 | +module T20902 where
|
|
| 4 | + |
|
| 5 | +import Language.Haskell.TH
|
|
| 6 | + |
|
| 7 | +data T = FU | FUN deriving Show
|
|
| 8 | + |
|
| 9 | +expr1 = $( conE (mkName "FU") )
|
|
| 10 | +expr2 = $( conE (mkName "FUN") )
|
|
| 11 | +expr3 = $( [| FU |] )
|
|
| 12 | +expr4 = $( [| FUN |] )
|
|
| 13 | + |
| ... | ... | @@ -651,3 +651,5 @@ test('T26099', normal, compile_fail, ['']) |
| 651 | 651 | test('T8306_th', only_ways(['ghci']), ghci_script, ['T8306_th.script'])
|
| 652 | 652 | test('T26862_th', only_ways(['ghci']), ghci_script, ['T26862_th.script'])
|
| 653 | 653 | test('T27022', normal, compile_and_run, [''])
|
| 654 | +test('T20902', normal, compile, [''])
|
|
| 655 | + |