summaryrefslogtreecommitdiff
path: root/testsuite/tests/th/TH_genEx.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/th/TH_genEx.hs')
-rw-r--r--testsuite/tests/th/TH_genEx.hs14
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/tests/th/TH_genEx.hs b/testsuite/tests/th/TH_genEx.hs
new file mode 100644
index 0000000000..fdc47960ad
--- /dev/null
+++ b/testsuite/tests/th/TH_genEx.hs
@@ -0,0 +1,14 @@
+{-# OPTIONS -ddump-splices -XExistentialQuantification #-}
+{-# LANGUAGE TemplateHaskell #-}
+
+module TH_genEx where
+
+import TH_genExLib
+import Language.Haskell.TH
+
+class MyInterface a where
+ foo :: a -> Int
+ foo1 :: Int -> a -> Int
+
+$(genAny (reify ''MyInterface))
+