Re: Feature, implement :main command

Neil Mitchell <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.hugs
Message-ID <[email protected]>
On 11/10/05, Ross Paterson <[email protected]> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.