| 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" <simonpj@microsoft.com> wrote,
| 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) <erayo@cs.bilkent.edu.tr> Comp. Sci. Dept., Bilkent University, Ankara www: http://www.cs.bilkent.edu.tr/~erayo GPG public key fingerprint: 360C 852F 88B0 A745 F31B EA0F 7C07 AE16 874D 539C -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE74q45fAeuFodNU5wRAuM+AJ0c7tprhD6RmqRANaktgOI9/7wkvQCeM6Ol M2A5S/6gX2hcu2yvrm6tSnw= =gWq/ -----END PGP SIGNATURE-----
"Eray Ozkural (exa)" <erayo@cs.bilkent.edu.tr> wrote,
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