summaryrefslogtreecommitdiff
path: root/testsuite/tests/partial-sigs/should_fail/T12732.hs
blob: 60bcde64863581318a5c264371fba3bc81eea4c0 (plain)
1
2
3
4
5
6
module T12732 where

(a ... b) xs
  | a == x
  , (l, _:r) <- break (== x) xs
  = l ++ [x]