Hi

> suma [] = 0
> suma (h:t) = h + suma t
>
> suma [] = 0
> suma h:t = h + suma t

Infix operators bind less tightly than function application, so the
compiler sees:

(suma h) : t = h + (suma t)

Hence the compiler gets confused.

Thanks

Neil
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to