summaryrefslogtreecommitdiff
path: root/testsuite/tests/rep-poly/T20423b.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/rep-poly/T20423b.hs')
-rw-r--r--testsuite/tests/rep-poly/T20423b.hs18
1 files changed, 18 insertions, 0 deletions
diff --git a/testsuite/tests/rep-poly/T20423b.hs b/testsuite/tests/rep-poly/T20423b.hs
new file mode 100644
index 0000000000..9918093b66
--- /dev/null
+++ b/testsuite/tests/rep-poly/T20423b.hs
@@ -0,0 +1,18 @@
+{-# LANGUAGE StandaloneKindSignatures, MagicHash, ExplicitForAll, PolyKinds,
+ DataKinds, UnliftedDatatypes, PatternSynonyms, ViewPatterns,
+ GADTs #-}
+
+module T20423b where
+
+import GHC.Exts
+
+type LPGADT :: forall (l :: Levity) -> TYPE (BoxedRep l)
+data LPGADT l where
+ MkLifted :: Int -> LPGADT Lifted
+ MkUnlifted :: Int# -> LPGADT Unlifted
+
+getInt# :: LPGADT l -> Int#
+getInt# = undefined
+
+pattern MkIPS :: Int# -> LPGADT l
+pattern MkIPS i# <- ( getInt# -> i# )