patch applied (ghc): :edit runs notepad by default on Windows
Neil Mitchell
ndmitchell at gmail.com
Fri Sep 29 07:11:07 EDT 2006
Hi
> I just copied what Hugs does, or at least I thought I did - does Hugs do
> ShellExecute?
No, Hugs does something thats not very clever, i.e. spawning notepad.
I've never used Hugs' :edit command on Windows. WinHugs on the other
hand has a clever set of rules which launches using ShellExecute if
that seems sensible, finds good editors (TextPad, Vim, Emacs etc) and
launches using them and then if all else fails drops down to Notepad.
It would be nice if GHC had the same kind of logic, but thats quite a
lot of work. You are welcome to share the logic of WinHugs, but thats
written in C.
Thanks
Neil
More information about the Cvs-ghc
mailing list