Fix documentation error
parent
cdb9e4e723
commit
8055fbc255
|
@ -79,8 +79,8 @@ runCmdParserWithHelpDesc mProgName input cmdF =
|
||||||
|
|
||||||
|
|
||||||
-- | Wrapper around 'runCmdParser' for very simple usage: Accept a @String@
|
-- | Wrapper around 'runCmdParser' for very simple usage: Accept a @String@
|
||||||
-- input and return only the output from the parser, returning @Nothing@ in
|
-- input and return only the output from the parser, or a plain error string
|
||||||
-- any error case.
|
-- on failure.
|
||||||
runCmdParserSimple :: String -> CmdParser Identity out () -> Either String out
|
runCmdParserSimple :: String -> CmdParser Identity out () -> Either String out
|
||||||
runCmdParserSimple s p = case snd $ runCmdParser Nothing (InputString s) p of
|
runCmdParserSimple s p = case snd $ runCmdParser Nothing (InputString s) p of
|
||||||
Left e -> Left $ parsingErrorString e
|
Left e -> Left $ parsingErrorString e
|
||||||
|
|
Loading…
Reference in New Issue