Fix duplicated desc-parts bug
parent
f2f3688149
commit
c29ef0cce2
|
@ -318,6 +318,7 @@ type PartParsedData = Map Int [Dynamic]
|
||||||
|
|
||||||
data CmdDescStack = StackBottom (Deque PartDesc)
|
data CmdDescStack = StackBottom (Deque PartDesc)
|
||||||
| StackLayer (Deque PartDesc) String CmdDescStack
|
| StackLayer (Deque PartDesc) String CmdDescStack
|
||||||
|
deriving Show
|
||||||
|
|
||||||
descStackAdd :: PartDesc -> CmdDescStack -> CmdDescStack
|
descStackAdd :: PartDesc -> CmdDescStack -> CmdDescStack
|
||||||
descStackAdd d = \case
|
descStackAdd d = \case
|
||||||
|
@ -1023,6 +1024,7 @@ runCmdParserAExt mTopLevel inputInitial cmdParser =
|
||||||
++ " with remaining input: "
|
++ " with remaining input: "
|
||||||
++ show input
|
++ show input
|
||||||
]
|
]
|
||||||
|
mSet $ StackBottom mempty
|
||||||
failureCurrentShallowRerun
|
failureCurrentShallowRerun
|
||||||
processParsedParts $ nextF monadMisuseError
|
processParsedParts $ nextF monadMisuseError
|
||||||
continueOrMisuse :: Maybe p -> m (CmdParser f out a)
|
continueOrMisuse :: Maybe p -> m (CmdParser f out a)
|
||||||
|
|
Loading…
Reference in New Issue