cvs commit: fptools/libraries/Cabal/Distribution GetOpt.hs Setup.hs fptools/libraries/base/System/Console GetOpt.hs

Sven Panne Sven.Panne at aedion.de
Sun Jan 23 11:47:10 EST 2005


Isaac Jones wrote:
> 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. [...]

Could you explain this a bit please? I don't fully understand what the
commandMain should do.

Cheers,
    S.


More information about the Cvs-libraries mailing list