[Haskell-beginners] Brainfuck interpreter stack overflow

Stephen Tetley stephen.tetley at gmail.com
Thu Jan 21 06:21:02 EST 2010


2010/1/21 Edgar Klerks <edgar at goodforall.eu>:

> I am using this one:
> http://hackage.haskell.org/packages/archive/parsec/3.0.0/doc/html/Text-Parsec.html
> Is that version ok?

Ah ha - that's the later than the one I use. The authors must have
decided to change its place in the modules hierarchy.

In your case, you have already IO as part of the monad stack so you
can write debug output to the console. This might produce a lot of
output before a stack overflow though.

A minor nit-pick - language pragmas generally go at the top of the
file. It might even be that they _should_ go at the top of the file, I
had to move it to make it run for me.

Best wishes

Stephen


More information about the Beginners mailing list