Em Ter, 2004-11-02 Ãs 18:09, Henning Sato Rosen escreveu: > data Fun = Increment | Square > fun:: Fun -> Int -> Int > fun Increment n = n+1 > fun Square = (\n -> n*n)
I think that this is because you gave two definitions of the same function with different number of variables. fun Increment n = n+1 fun Square n = n*n will do it. You don't have to go that far to see this error, you can do something like: add :: Int -> Int -> Int add 5 = (+10) add x y = x + y Will give you the same error message. -- []'s marcot mailto:[EMAIL PROTECTED] jabber:[EMAIL PROTECTED] ICQ:50599075 MSN:[EMAIL PROTECTED] Tel:33346720 Cel:91844179 http://www.dcc.ufmg.br/~marcot/ "A crocrÃncia à fundamental para quem quer ser fundamental." Bizarro da Silva e marcot
signature.asc
Description: Esta =?ISO-8859-1?Q?=E9?= uma parte de mensagem assinada digitalmente
_______________________________________________ Haskell-Cafe mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell-cafe
