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