summaryrefslogtreecommitdiff
path: root/testsuite/tests/th/TH_class1.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/th/TH_class1.hs')
-rw-r--r--testsuite/tests/th/TH_class1.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/tests/th/TH_class1.hs b/testsuite/tests/th/TH_class1.hs
new file mode 100644
index 0000000000..334a7d2301
--- /dev/null
+++ b/testsuite/tests/th/TH_class1.hs
@@ -0,0 +1,7 @@
+{-# LANGUAGE MultiParamTypeClasses, FunctionalDependencies #-}
+
+module TH_class1 where
+
+$( [d| class Classy a b c d | a -> b c, c -> d where
+ f :: a -> b -> c -> d
+ |] )