Am Mittwoch, 3. September 2003 12:50 schrieb Steffen Mazanek:
> Hello,
>
> >all_fib :: [Float]
>
> You define "all_fib" to return a list of "Float", but "even" does only work
> for numbers whose type is an instance of the class Integral, e.g. Int.
>
> HTH and ciao,
> Steffen
And I see no reason to define it as a list of Float because all Fibonacci
numbers are natural numbers. So better write:
all_fib :: [Integer]
Wolfgang
_______________________________________________
Haskell-Cafe mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell-cafe