blob: 77c386011219c7aaecbd57e4add352afaab9ee0e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
-- Check overlap in n+k patterns
{-# LANGUAGE NPlusKPatterns #-}
module Foo where
g :: Int -> Int
g (x+1) = x
g y = y
g _ = 0 -- Overlapped
h :: Int -> Int
h (x+1) = x
h _ = 0 -- Not overlapped
|