Problem with Infinite Lists

Wolfgang Jeltsch wolfgang@jeltsch.net
Wed, 3 Sep 2003 21:16:53 +0200


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