summaryrefslogtreecommitdiff
path: root/tests/examples/ghc86/TH_class1.hs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/examples/ghc86/TH_class1.hs')
-rw-r--r--tests/examples/ghc86/TH_class1.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/examples/ghc86/TH_class1.hs b/tests/examples/ghc86/TH_class1.hs
new file mode 100644
index 0000000..27b9db8
--- /dev/null
+++ b/tests/examples/ghc86/TH_class1.hs
@@ -0,0 +1,9 @@
+{-# LANGUAGE MultiParamTypeClasses, FunctionalDependencies #-}
+{-# LANGUAGE TemplateHaskell #-}
+
+module TH_class1 where
+
+$( [d| class Classy a b c d | a -> b c, c -> d where
+ f :: a -> b -> c -> d
+ |] )
+