diff options
Diffstat (limited to 'testsuite/tests/th/TH_ghci1.script')
-rw-r--r-- | testsuite/tests/th/TH_ghci1.script | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/tests/th/TH_ghci1.script b/testsuite/tests/th/TH_ghci1.script new file mode 100644 index 0000000000..bcc752b9f4 --- /dev/null +++ b/testsuite/tests/th/TH_ghci1.script @@ -0,0 +1,6 @@ +:m +Language.Haskell.TH +let { g1 :: Q Exp -> Q Exp; g1 x = x } +let { g2 :: Name -> Q Exp; g2 x = return (VarE x) } +let h x = x::Int +$(g1 [| h |]) 5 +$(g2 'h) 6 |