summaryrefslogtreecommitdiff
path: root/tests/examples/ghc86/T5217.hs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/examples/ghc86/T5217.hs')
-rw-r--r--tests/examples/ghc86/T5217.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/examples/ghc86/T5217.hs b/tests/examples/ghc86/T5217.hs
new file mode 100644
index 0000000..ac06be4
--- /dev/null
+++ b/tests/examples/ghc86/T5217.hs
@@ -0,0 +1,11 @@
+{-# LANGUAGE GADTs #-}
+{-# LANGUAGE TemplateHaskell #-}
+
+module T5217 where
+import Language.Haskell.TH
+
+$([d| data T a b where { T1 :: Int -> T Int Char
+ ; T2 :: a -> T a a
+ ; T3 :: a -> T [a] a
+ ; T4 :: a -> b -> T b [a] } |])
+