From 68a78932b5b004945f6681bd51e8080e868fc0ee Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Sun, 9 Mar 2014 16:32:36 +0100 Subject: Group similar fixities together Identical fixities declared for the same line should now render using syntax like: infix 4 <, >=, >, <= --- html-test/src/Operators.hs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'html-test/src') diff --git a/html-test/src/Operators.hs b/html-test/src/Operators.hs index a2e30c18..f7b4d0ab 100644 --- a/html-test/src/Operators.hs +++ b/html-test/src/Operators.hs @@ -45,11 +45,19 @@ infix 9 ** class a ><> b where type a <>< b :: * data a ><< b - (>><) :: a -> b -> () + (>><), (<<>) :: a -> b -> () + + -- | Multiple fixities + (**>), (**<), (>**), (<**) :: a -> a -> () + infixr 1 ><> infixl 2 <>< infixl 3 ><< infixr 4 >>< +infixl 5 <<> + +infixr 8 **>, >** +infixl 8 **<, <** -- | Type synonym with fixity type (a >-< b) = a <-> b -- cgit v1.2.3