Fix two bugs
- when input was missing inside a reorder, butcher erroneously reported an monadMisuseError; - flags that allow multiple occurences/values returned the results in the reversed order.pull/5/head
parent
719d447701
commit
97f7165656
|
@ -880,8 +880,7 @@ runCmdParserAExt mTopLevel inputInitial cmdParser
|
||||||
++ show input
|
++ show input
|
||||||
]
|
]
|
||||||
failureCurrentShallowRerun
|
failureCurrentShallowRerun
|
||||||
return $ return $ monadMisuseError -- so ugly.
|
processParsedParts $ nextF monadMisuseError
|
||||||
-- should be correct nonetheless.
|
|
||||||
continueOrMisuse :: Maybe p -> m (CmdParser f out a)
|
continueOrMisuse :: Maybe p -> m (CmdParser f out a)
|
||||||
continueOrMisuse = maybe monadMisuseError
|
continueOrMisuse = maybe monadMisuseError
|
||||||
(processParsedParts . nextF)
|
(processParsedParts . nextF)
|
||||||
|
@ -916,7 +915,7 @@ runCmdParserAExt mTopLevel inputInitial cmdParser
|
||||||
mSet $ MapS.delete pid m
|
mSet $ MapS.delete pid m
|
||||||
let partDyns = case MapS.lookup pid m of
|
let partDyns = case MapS.lookup pid m of
|
||||||
Nothing -> []
|
Nothing -> []
|
||||||
Just r -> r
|
Just r -> reverse r
|
||||||
case mapM fromDynamic partDyns of
|
case mapM fromDynamic partDyns of
|
||||||
Nothing -> monadMisuseError
|
Nothing -> monadMisuseError
|
||||||
Just xs -> processParsedParts $ nextF xs
|
Just xs -> processParsedParts $ nextF xs
|
||||||
|
|
Loading…
Reference in New Issue