summaryrefslogtreecommitdiff
path: root/testsuite/tests/th/TH_spliceInst.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/th/TH_spliceInst.hs')
-rw-r--r--testsuite/tests/th/TH_spliceInst.hs15
1 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/tests/th/TH_spliceInst.hs b/testsuite/tests/th/TH_spliceInst.hs
new file mode 100644
index 0000000000..fd0918ce78
--- /dev/null
+++ b/testsuite/tests/th/TH_spliceInst.hs
@@ -0,0 +1,15 @@
+{-# LANGUAGE TemplateHaskell #-}
+
+-- Tickles a GHC 6.4 buglet
+
+module ShouldCompile where
+
+class Foo a where
+ foo :: a -> a
+ foo = id
+
+-- Splice an instance decl that uses the default method
+$( [d| instance Foo () where |] )
+
+
+