getOpt return record of type a rather than [a]

Henning Thielemann lemming at henning-thielemann.de
Wed Dec 19 04:56:48 EST 2007


On Tue, 18 Dec 2007, Stefan O'Rear wrote:

> The approach you describe is quite possible with the current GetOpt,
> just apply (foldr ($) initialValue) to the return value, and allow a to
> be instantiated with a function type.

I thought this must be a good article for Category:Idioms, and what do I
find there ...
  http://www.haskell.org/haskellwiki/High-level_option_handling_with_GetOpt


More information about the Libraries mailing list