diff options
Diffstat (limited to 'testsuite/tests/th/T4056.hs')
-rw-r--r-- | testsuite/tests/th/T4056.hs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/tests/th/T4056.hs b/testsuite/tests/th/T4056.hs new file mode 100644 index 0000000000..211d2b51f4 --- /dev/null +++ b/testsuite/tests/th/T4056.hs @@ -0,0 +1,15 @@ +{-# LANGUAGE TemplateHaskell, TypeFamilies, RankNTypes, FlexibleContexts #-} + +module T4056 where +import Language.Haskell.TH + +astTest :: Q [Dec] +astTest = [d| + class C t where + op :: [t] -> [t] + op = undefined + |] + +class D t where + bop :: [t] -> [t] + bop = undefined |