summaryrefslogtreecommitdiff
path: root/testsuite/tests/th/T5508.hs
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2011-09-29 16:55:58 +0100
committerSimon Peyton Jones <simonpj@microsoft.com>2011-09-29 16:55:58 +0100
commitb34aa2cdcab4b797d0439eaca74f974814d50586 (patch)
treefc65f14533c4cbddddd348d30c17218b90cd0603 /testsuite/tests/th/T5508.hs
parent50029f694b4d96c50db9528cb48ea25659997d56 (diff)
downloadhaskell-b34aa2cdcab4b797d0439eaca74f974814d50586.tar.gz
Test Trac #5508
Diffstat (limited to 'testsuite/tests/th/T5508.hs')
-rw-r--r--testsuite/tests/th/T5508.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/th/T5508.hs b/testsuite/tests/th/T5508.hs
new file mode 100644
index 0000000000..ee82e8ff9b
--- /dev/null
+++ b/testsuite/tests/th/T5508.hs
@@ -0,0 +1,9 @@
+{-# LANGUAGE TemplateHaskell #-}
+
+module T5508 where
+
+import Language.Haskell.TH
+
+thb = $(do { let x = mkName "x"
+ v = return (LamE [VarP x] $ VarE x)
+ ; [| $v . id |] })