[Haskell-cafe] Re: Equations for `foo' have different numbers of arguments

Martijn van Steenbergen martijn at van.steenbergen.nl
Tue Mar 24 11:25:17 EDT 2009

Achim Schneider wrote:
> The
> other might be implementation issues: it makes pattern match rules
> more complex.

But only marginally, right?

f A B = biz
f B = bar
f = bam

could be trivially rewritten to:

f A B = biz
f B y = bar y
f x y = bam x y


More information about the Haskell-Cafe mailing list