GetOpt is broken

2005-04-12 Thread Volker Wysk
Hello.

In GHC 6.4, GetOpt no longer recognizes the -- argument, which terminates 
interpretation of arguments beginning with - as switches:


import System.Console.GetOpt
import System

main = do
   args - getArgs
   let (_,_,f) = getOpt Permute [Option a [] (OptArg (const ()) xxx) ]
args
   print f


/tmp $ ./getopt -- -1
[unrecognized option `-1'\n]


It works okay with GHC 6.2.2.

Bye,
V.W.
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: GetOpt is broken

2005-04-12 Thread Wolfgang Thaller
Volker Wysk wrote:
Hello.
In GHC 6.4, GetOpt no longer recognizes the -- argument, which 
terminates
interpretation of arguments beginning with - as switches:
Thanks for the report. This bug is already fixed in CVS.
Cheers,
Wolfgang
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs