Test Trac #5597
authorSimon Peyton Jones <simonpj@microsoft.com>
Thu, 17 Nov 2011 14:19:10 +0000 (14:19 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Thu, 17 Nov 2011 14:19:10 +0000 (14:19 +0000)
testsuite/tests/th/T5597.hs [new file with mode: 0644]
testsuite/tests/th/T5597a.hs [new file with mode: 0644]
testsuite/tests/th/all.T

diff --git a/testsuite/tests/th/T5597.hs b/testsuite/tests/th/T5597.hs
new file mode 100644 (file)
index 0000000..b6ab9da
--- /dev/null
@@ -0,0 +1,5 @@
+{-# LANGUAGE TemplateHaskell #-}
+module T5597 where
+import T5597a( f )
+
+g = $(f [t| (Int, Int) |])
diff --git a/testsuite/tests/th/T5597a.hs b/testsuite/tests/th/T5597a.hs
new file mode 100644 (file)
index 0000000..eeea7f5
--- /dev/null
@@ -0,0 +1,6 @@
+{-# LANGUAGE TemplateHaskell #-}
+module T5597a where
+import Language.Haskell.TH
+
+f :: Q Type -> Q Exp
+f t = [| (3,4) :: $t |]
index 91432cf..a2121bd 100644 (file)
@@ -213,3 +213,5 @@ test('TH_Depends',
                    'TH_Depends_external.txt'])],
      run_command,
      ['$MAKE -s --no-print-directory TH_Depends'])
+test('T5597', extra_clean(['T5597a.hi','T5597a.o']), 
+              multimod_compile, ['T5597','-v0'])