Re[2]: [Haskell-cafe] GetOpt

2006-04-28 Thread Bulat Ziganshin
Hello Anton, Friday, April 28, 2006, 12:54:44 AM, you wrote: > I really trying to avoid imperative approach. I do have a terribly big > experience in imperative programming (by the way, you might know one > application that I made about 3 years ago. It is Uni-K Sensei for no. but may be you are

Re: Re[2]: [Haskell-cafe] GetOpt

2006-04-27 Thread Brian Hulley
Brian Hulley wrote: moduleOptions = ComposedOption "My module" [ModOption1, ModOption2] moduleOptions = Option $ ComposedOption "My module" [ModOption1, ModOption2] allOptions = ComposedOption "Name of program" [Module1.moduleOptions, allOptions = Option $ ComposedOption "Name of program" [

Re: Re[2]: [Haskell-cafe] GetOpt

2006-04-27 Thread Brian Hulley
Bulat Ziganshin wrote: Hello Tomasz, [snip] ultimately, the main problem of all options-parsing stuff i ever seen, is requirement to repeat option definition many times. if i have, say, 40 options, then i need to maintain 3 to 5 program fragments that deal with each option. something like this:

Re[2]: [Haskell-cafe] GetOpt

2006-04-27 Thread Bulat Ziganshin
Hello Tomasz, Thursday, April 27, 2006, 4:45:45 PM, you wrote: > On Thu, Apr 27, 2006 at 03:10:32PM +0400, Bulat Ziganshin wrote: >> i don't like the GetOpt interface (it returns a list of options what >> is unusable for high-speed application) > This got me interested. I assume that you measure