Feature, implement :main command

Neil Mitchell ndmitchell at gmail.com
Thu Nov 10 09:51:55 EST 2005


On 11/10/05, Ross Paterson <ross at soi.city.ac.uk> wrote:
> On Thu, Nov 10, 2005 at 01:22:24PM +0000, Neil Mitchell wrote:
> > > However, having :args as well might be quite handy.
> > In GHCi this feature is available as :set args blah, not sure if thats
> > a good way to go or not.
>
> Will WinHugs have something equivalent, for the situation where one
> wants to run the program again with the same args after each change?

Yes, it has full command history, so the up arrow does this perfectly.
I'm not sure people need anything else, but it can be done if they do.

>
> > Shall I commit :main then? Or should I save it as a WinHugs specific feature?
>
> Having :main would break the Hugs rule that all commands can be
> abbreviated to a single letter.  :Main?

main is basically calling main, and in Haskell Main would be something
entirely different. However, the single letter rule is useful. Not
sure on that one.

Neil


More information about the Cvs-hugs mailing list