summaryrefslogtreecommitdiff
path: root/tests/examples/ghc86/TH_reifyMkName.hs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/examples/ghc86/TH_reifyMkName.hs')
-rw-r--r--tests/examples/ghc86/TH_reifyMkName.hs16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/examples/ghc86/TH_reifyMkName.hs b/tests/examples/ghc86/TH_reifyMkName.hs
new file mode 100644
index 0000000..a783535
--- /dev/null
+++ b/tests/examples/ghc86/TH_reifyMkName.hs
@@ -0,0 +1,16 @@
+-- Trac #2339
+{-# LANGUAGE TemplateHaskell #-}
+
+module Foo where
+
+import System.IO
+import Language.Haskell.TH
+
+type C = Int
+
+$(do
+ a <- reify $ mkName "C"
+ runIO $ hPutStrLn stderr (show a)
+ return []
+ )
+