summaryrefslogtreecommitdiff
path: root/testsuite/tests/th/T8932.hs
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2014-04-07 15:22:11 +0100
committerSimon Peyton Jones <simonpj@microsoft.com>2014-04-07 15:25:24 +0100
commitd8d798b1b33ab0593ed03f193360b8725ba2c2ba (patch)
tree4ab080437f040ebf263f154663ad3787ce01da6a /testsuite/tests/th/T8932.hs
parent8f831ec578d22419788542290e164c50524d90f6 (diff)
downloadhaskell-d8d798b1b33ab0593ed03f193360b8725ba2c2ba.tar.gz
Small issue with signatures in a TH splice (fixes Trac #8932)
Diffstat (limited to 'testsuite/tests/th/T8932.hs')
-rw-r--r--testsuite/tests/th/T8932.hs12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/th/T8932.hs b/testsuite/tests/th/T8932.hs
new file mode 100644
index 0000000000..05630f331f
--- /dev/null
+++ b/testsuite/tests/th/T8932.hs
@@ -0,0 +1,12 @@
+{-# LANGUAGE TemplateHaskell #-}
+
+module T8932 where
+
+$([d|
+ foo :: a -> a
+ foo x = x
+ |])
+
+foo :: a
+foo = undefined
+