Fix documentation error

pull/5/head
Lennart Spitzner 2017-09-24 17:48:27 +02:00
parent cdb9e4e723
commit 8055fbc255
1 changed files with 2 additions and 2 deletions

View File

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