summaryrefslogtreecommitdiff
path: root/libraries/base/System/Console
diff options
context:
space:
mode:
authorSven Panne <sven.panne@aedion.de>2006-05-06 11:05:19 +0000
committerSven Panne <sven.panne@aedion.de>2006-05-06 11:05:19 +0000
commitcf09e8bfddac9820beffb8e68ba367453a0c80d0 (patch)
tree6650db3a933eb678fbf0d90d6a48532e0205dd13 /libraries/base/System/Console
parent916d10f8e6e840cc0aabf739aa221c9851db1f31 (diff)
downloadhaskell-cf09e8bfddac9820beffb8e68ba367453a0c80d0.tar.gz
Merge "unrecognized long opt" fix from 6.4.2
Diffstat (limited to 'libraries/base/System/Console')
-rw-r--r--libraries/base/System/Console/GetOpt.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/libraries/base/System/Console/GetOpt.hs b/libraries/base/System/Console/GetOpt.hs
index c1463c0f1e..fa9f9b20c5 100644
--- a/libraries/base/System/Console/GetOpt.hs
+++ b/libraries/base/System/Console/GetOpt.hs
@@ -161,7 +161,7 @@ getOpt' _ _ [] = ([],[],[],[])
getOpt' ordering optDescr (arg:args) = procNextOpt opt ordering
where procNextOpt (Opt o) _ = (o:os,xs,us,es)
procNextOpt (UnreqOpt u) _ = (os,xs,u:us,es)
- procNextOpt (NonOpt x) RequireOrder = ([],x:rest,[],[])
+ procNextOpt (NonOpt x) RequireOrder = ([],x:rest,us,[])
procNextOpt (NonOpt x) Permute = (os,x:xs,us,es)
procNextOpt (NonOpt x) (ReturnInOrder f) = (f x :os, xs,us,es)
procNextOpt EndOfOpts RequireOrder = ([],rest,[],[])