summaryrefslogtreecommitdiff
path: root/testsuite/tests/th/T6114.hs
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2012-06-05 11:42:04 +0100
committerSimon Peyton Jones <simonpj@microsoft.com>2012-06-05 11:42:04 +0100
commit08a4aa7cbf0a5aa73b04c0788e06cba133a6741f (patch)
treed0462cb7bbc8ad48ff60a0946450ab3855e328a8 /testsuite/tests/th/T6114.hs
parent3ae71382184b5770940dd5069c0435316b6e6972 (diff)
downloadhaskell-08a4aa7cbf0a5aa73b04c0788e06cba133a6741f.tar.gz
Test Trac #6114
Diffstat (limited to 'testsuite/tests/th/T6114.hs')
-rw-r--r--testsuite/tests/th/T6114.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/th/T6114.hs b/testsuite/tests/th/T6114.hs
new file mode 100644
index 0000000000..bea852c2b6
--- /dev/null
+++ b/testsuite/tests/th/T6114.hs
@@ -0,0 +1,11 @@
+{-# LANGUAGE TemplateHaskell #-}
+module T6114 where
+import Language.Haskell.TH
+import Control.Monad.Instances ()
+
+instanceVar = $(do
+ xName <- newName "x"
+ instanceType <- [t| $(varT xName) |]
+ _ <- reifyInstances ''Eq [instanceType]
+ undefined
+ )