cvs commit: fptools/libraries/Cabal/Distribution GetOpt.hs
Setup.hs fptools/libraries/base/System/Console GetOpt.hs
Isaac Jones
ijones at syntaxpolice.org
Sun Jan 23 11:30:08 EST 2005
Sven Panne <panne at haskell.org> writes:
> panne 2005/01/23 05:48:19 PST
>
> Modified files:
> libraries/Cabal/Distribution GetOpt.hs Setup.hs
> libraries/base/System/Console GetOpt.hs
> Log:
> Added Isaac's getOpt variant (named getOpt' now), so System.Console.GetOpt
> and Distribution.GetOpt are identical now.
Nice. Thanks.
While you're at it, I had a thought of writing a simple function for
commands:
commandMain :: (String, IO ()) -> IO ()
which just grabs the non-flag arguments and executes an action
depending on the command. I don't have a use for it right now, but it
seemed like it might be useful so I thougt I'd mention it.
peace,
isaac
More information about the Cvs-libraries
mailing list