summaryrefslogtreecommitdiff
path: root/testsuite/tests/parser/should_fail/T7848.hs
blob: 25f0af7ee0cd5c29d7f3ef2bbcacdeef25ede1c9 (plain)
1
2
3
4
5
6
7
8
9
10
11

module T7848 where

data A = (:&&) Int Int | A Int Int

x (+) ((&)@z) ((:&&) a b) (c :&& d) (e `A` f) (A g h) = y
  where infixl 3 `y`
        y _ = (&)
        {-# INLINE (&) #-}
        {-# SPECIALIZE (&) :: a #-}
        (&) = x