[Haskell-cafe] Newbie question: the need for parentheses

Miguel Mitrofanov miguelimo38 at yandex.ru
Tue Jan 8 16:51:45 EST 2008


> However, why do I need the parenthes in the second clause? What  
> does the compiler think I'm trying to do when I type
> suma [] = 0
> suma h:t = h + suma t

(suma h):t = h + suma t


More information about the Haskell-Cafe mailing list