summaryrefslogtreecommitdiff
path: root/testsuite/tests/th/T15243.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/th/T15243.hs')
-rw-r--r--testsuite/tests/th/T15243.hs15
1 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/tests/th/T15243.hs b/testsuite/tests/th/T15243.hs
new file mode 100644
index 0000000000..8b366404c8
--- /dev/null
+++ b/testsuite/tests/th/T15243.hs
@@ -0,0 +1,15 @@
+{-# LANGUAGE DataKinds #-}
+{-# LANGUAGE PolyKinds #-}
+{-# LANGUAGE TemplateHaskell #-}
+{-# LANGUAGE TypeFamilies #-}
+{-# OPTIONS_GHC -ddump-splices #-}
+module T15243 where
+
+data Unit = Unit
+
+$([d| type family F (a :: k) :: k where
+ F 'Unit = 'Unit
+ F '(,) = '(,)
+ F '[] = '[]
+ F '(:) = '(:)
+ |])