[EMAIL PROTECTED] writes:
> getArgs is always empty
> This makes debugging of Haskell programs that use command line arguments and
> options unnecessarily difficult.
>
> It would be _very_ useful if the command line arguments
> could be set on the command line when calling hugs and/or
> by a command in the hugs main loop.
> From inspecting the code for runhugs I guess a call to setHugsArgs with
> suitable arguments should do the trick.
Hi Patrik,
This sounds like a good idea... but here's a minor variation which would
avoid cluttering up the interpreter with extra commands:
Instead of adding a new command:
:setArgs foo bar baz
(or whatever concrete proposal you had in mind), let's add a new function:
System.hugsSetArgs :: [String] -> IO ()
(and remove IOExtensions.argv which I added in a moment of weakness).
Now to the tricky part: who actually implements it.
The answer is "not me" because my ToDo list is already _far_too_long_.
But I'd be happy to merge in any code you write :-)
--
Alastair Reid Yale Haskell Project Hacker
[EMAIL PROTECTED] http://WWW.CS.Yale.EDU/homes/reid-alastair/