exhaustive pattern warning bug with irrefutable patterns

3 Dec
2005
3 Dec
'05
8:53 p.m.
the following gives a 'non-exhaustive pattern matching' error when it shouldn't. the ~-pattern always matches. It is not the function that is non-exhausitive, but the irrefutable binding, which are necessarily always non-exhausive so warning about it is the wrong thing to do. f :: [a] -> a f [x] = x f ~(_:xs) = f xs John -- John Meacham - ⑆repetae.net⑆john⑈
7109
Age (days ago)
7109
Last active (days ago)
0 comments
1 participants
participants (1)
-
John Meacham