[Haskell-beginners] Decent Haskell REPL?
jon at ffconsultancy.com
Sat Feb 20 14:44:30 EST 2010
On Saturday 20 February 2010 16:33:30 Tom Tobin wrote:
> I just hit C-c C-r in my Haskell source file's buffer to get it
> reloaded in the inferior ghci shell.
> I think it's best to think of the source file as your scratchpad for
> editing, with the "main" function changed as you go along to show
> relevant output for testing, and the inferior ghci buffer as just an
> "output window" of sorts. It's not the same as writing code directly
> shell, but I actually prefer it this way for all languages now, not
> just Haskell -- particularly since it's much nicer editing code in a
> proper editor vs. in a shell.
I see. What happens if your program is producing non-trivial output that takes
a long time to compute? How do you get around complete recomputation at the
evaluation of every new expression?
Dr Jon Harrop, Flying Frog Consultancy Ltd.
More information about the Beginners