Re: Feature, implement :main command

Ross Paterson <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.hugs
Message-ID <20051030195031.GA14070__31785.6096000925$1130701909$gmane$org@soi.city.ac.uk>
On Sun, Oct 30, 2005 at 02:07:30PM +0000, Neil Mitchell wrote:
> > Well the Main module probably imports System.Environment anyway
> Mine never does, I always import System, which doesn't include withArgs

Haskell 98 libraries?  How quaint.

> > The usual way to parse arguments to Hugs commands is readFilename(),
> That does make it much easier, and much shorter, attached is a new
> version. If no one has any objections I'll check it in.

This differs from setArgs in that it leave the args set.  Maybe the
command should just set the args.
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.