figboy
I folded Myself
Boas. Estou agora a aprender Haskell na faculdade e estou a ter problemas num dos exercicios que tenho para fazer.
Código:
<iframe src="https://pastebin.com/embed_iframe/xBNYXdNe" style="border:none;width:100%"></iframe>
Erro:
Non type-variable argument in the constraint:Num [a]
(Use FlexibleContexts to permit this)
When checking that ´binom2´ has the inferred type
binom2 ::forall a. (Integral a, Num [a])=>a ->a->a
Agradeço qualquer ajuda
Código:
<iframe src="https://pastebin.com/embed_iframe/xBNYXdNe" style="border:none;width:100%"></iframe>
Erro:
Non type-variable argument in the constraint:Num [a]
(Use FlexibleContexts to permit this)
When checking that ´binom2´ has the inferred type
binom2 ::forall a. (Integral a, Num [a])=>a ->a->a
Agradeço qualquer ajuda