Example code for GetOpt doesn't compile

Simon Marlow simonmar at microsoft.com
Tue Aug 14 04:27:39 EDT 2001


The example code is slightly wrong.

Change this:

>       (_,_,errs) -> fail (userError (concat errs ++ usageInfo header 

to this:

>       (_,_,errs) -> ioError (userError (concat errs ++ usageInfo
header 

Cheers,
	Simon




More information about the Glasgow-haskell-bugs mailing list