[Haskell-cafe] Equations for `foo' have different numbers of
manlio_perillo at libero.it
Tue Mar 24 13:57:05 EDT 2009
Bulat Ziganshin ha scritto:
> Hello Manlio,
> Tuesday, March 24, 2009, 5:44:14 PM, you wrote:
>> divide _ 0 = error "division by 0"
>> divide = (/)
>> Equations for `divide' have different numbers of arguments
> you should write
> divide a b = a/b
But my question was: why can't I write the function as I did?
Why can't I write an equation in the curried form?
Thanks (and thanks for the other responses, I will reply only here)
More information about the Haskell-Cafe