News for hackers. Stuff that matters.
Re:Pitfalls in Haskell by pklausler on Monday August 22, 2016 @11:30AM (#12337001)
If he's not binding anything, he could just match C{} in the first rule and a wildcard (_) in the second.
Re:Pitfalls in Haskell by dllthomas on Monday August 22, 2016 @11:35AM (#12337044)
Yes, but there could be a D{}, now or in the future.

I rarely use wildcards that aren't embedded in the middle of some larger structure. They stop the compiler from telling me points I need to consider, as I change my code.