[Agda] red background when trying to define the Fibonacci sequence

Wolfgang Jeltsch g9ks157k at acme.softbase.org
Fri Jan 7 17:47:41 CET 2011


Hi,

I just tried to define the Fibonacci sequence as follows:

    fibonaccis : Stream ℕ
    fibonaccis = 0 ∷ ♯ (1 ∷ ♯ zipWith _+_ fibonaccis (tail fibonaccis))

However, the identifier “fibonaccis” gets a red background. How can I
fix this?

Best wishes,
Wolfgang




More information about the Agda mailing list