[Haskell-beginners] Brainfuck interpreter stack overflow
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:
> 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.
More information about the Beginners