summaryrefslogtreecommitdiff
path: root/testsuite/tests/printer/T14306.hs
diff options
context:
space:
mode:
authorAlan Zimmerman <alan.zimm@gmail.com>2017-10-02 18:09:37 +0200
committerAlan Zimmerman <alan.zimm@gmail.com>2017-10-02 20:15:11 +0200
commit0e9681268a38cbc15c9c2b50979624732c9077ce (patch)
treec5e3531324db10244e79bfd57e4255876df422de /testsuite/tests/printer/T14306.hs
parent11a59de25d49f999eed0ea55df29d916a66ecd91 (diff)
downloadhaskell-0e9681268a38cbc15c9c2b50979624732c9077ce.tar.gz
Pretty-printer missing parens for infix class declaration
class (a `C` b) c Is pretty printed as class a `C` b c Fixes #14306
Diffstat (limited to 'testsuite/tests/printer/T14306.hs')
-rw-r--r--testsuite/tests/printer/T14306.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/printer/T14306.hs b/testsuite/tests/printer/T14306.hs
new file mode 100644
index 0000000000..c39807e4d3
--- /dev/null
+++ b/testsuite/tests/printer/T14306.hs
@@ -0,0 +1,10 @@
+{-# LANGUAGE MultiParamTypeClasses #-}
+module T14306 where
+
+class (a `C` b) c
+
+class (a `D` b) c d
+
+class (a `E` b)
+
+class a `F` b