(-_-)
Membro
ae galera.. sou novo em programaçao e queria uma ajuda...
curti soh:
fun :: int -> int -> int ->
fun x y = 3*x+y
noob essa expressão... mas quando dou load, olha o q acontece:
fun ::ERROR "C:\scripts\fun.hs" :2 - Inferred type is not general enough
*** Expression : fun
*** Expected type : a -> a -> a
*** Inferred type : Integer -> Integer -> Integer
viu??? Já troquei o int pelo integer, mais continua nao funcionando
se puder ajuda ae... vlww
curti soh:
fun :: int -> int -> int ->
fun x y = 3*x+y
noob essa expressão... mas quando dou load, olha o q acontece:
fun ::ERROR "C:\scripts\fun.hs" :2 - Inferred type is not general enough
*** Expression : fun
*** Expected type : a -> a -> a
*** Inferred type : Integer -> Integer -> Integer
viu??? Já troquei o int pelo integer, mais continua nao funcionando
se puder ajuda ae... vlww