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

Bulat Ziganshin bulat.ziganshin at gmail.com
Tue Mar 24 10:54:42 EDT 2009


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


-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Haskell-Cafe mailing list