summaryrefslogtreecommitdiff
path: root/testsuite/tests/printer/PprCompleteSig.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/printer/PprCompleteSig.hs')
-rw-r--r--testsuite/tests/printer/PprCompleteSig.hs20
1 files changed, 20 insertions, 0 deletions
diff --git a/testsuite/tests/printer/PprCompleteSig.hs b/testsuite/tests/printer/PprCompleteSig.hs
new file mode 100644
index 0000000000..1a5fbaed66
--- /dev/null
+++ b/testsuite/tests/printer/PprCompleteSig.hs
@@ -0,0 +1,20 @@
+{-# LANGUAGE PatternSynonyms #-}
+{-# LANGUAGE NoImplicitPrelude #-}
+{-# OPTIONS_GHC -Wall #-}
+module Simple where
+
+pattern Foo :: ()
+pattern Foo = ()
+
+a :: () -> ()
+a Foo = ()
+
+data A = B | C | D
+
+{-# COMPLETE Foo #-}
+{-# COMPLETE B,C #-}
+{-# COMPLETE B #-}
+
+b :: A -> A
+b B = B
+b C = C