
| What about my idea? Can't there be a module, say called | *interpreter* which | you can add and remove definitions from on-the-fly? | Something that would put you tighter in the loop. Without | having to go back | to the editor edit stuff, reload from interpreter, choke on | error, see what | went wrong, etc. Just scratch some code on the CLI, see what | you've defined | so far, edit the current module, and evaluate what you want | to. So the CLI would have to have a way to show you what the current "interpreter" module was, and let you edit it. How does that differ from an editor? This smells like a tarpit to me: once you provide a basic editor, everyone will want more features. Better, surely, to use an existing editor? S

"Simon Peyton-Jones"
| What about my idea? Can't there be a module, say called | *interpreter* which | you can add and remove definitions from on-the-fly? | Something that would put you tighter in the loop. Without | having to go back | to the editor edit stuff, reload from interpreter, choke on | error, see what | went wrong, etc. Just scratch some code on the CLI, see what | you've defined | so far, edit the current module, and evaluate what you want | to.
So the CLI would have to have a way to show you what the current "interpreter" module was, and let you edit it. How does that differ from an editor? This smells like a tarpit to me: once you provide a basic editor, everyone will want more features. Better, surely, to use an existing editor?
Definitely. An environment like this is pretty trivial todo in Emacs. In fact, the Emacs Haskell mode does most of that already anyway. Manuel

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday 02 November 2001 10:11, Manuel M. T. Chakravarty wrote:
Definitely. An environment like this is pretty trivial todo in Emacs. In fact, the Emacs Haskell mode does most of that already anyway.
Well, I use emacs, but didn't really got that working with GHCi. It did work
with hugs though.
I see you are hesitant about adding features to the interpreter but I'd
certainly be happy to see more.
My suggestion was just an easy way to do it. One thing I'd like a real
interpreter to do is the possibility to view entities defined so far, and to
modify them. A finer grained interpretation mode that is.
Thanks,
- --
Eray Ozkural (exa)

"Eray Ozkural (exa)"
On Friday 02 November 2001 10:11, Manuel M. T. Chakravarty wrote:
Definitely. An environment like this is pretty trivial todo in Emacs. In fact, the Emacs Haskell mode does most of that already anyway.
Well, I use emacs, but didn't really got that working with GHCi. It did work with hugs though.
The latest version of http://www.haskell.org/haskell-mode/ has GHCi support. Cheers, Manuel
participants (3)
-
Eray Ozkural (exa)
-
Manuel M. T. Chakravarty
-
Simon Peyton-Jones