Skip to content

Commit

Permalink
Merge pull request #456 from jaspervdj/update-parsefailure-snippet
Browse files Browse the repository at this point in the history
Update code snippet in parserFailure haddocks
  • Loading branch information
HuwCampbell authored Aug 17, 2022
2 parents 362c61c + 30a9b61 commit 9bdeef6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Options/Applicative/Extra.hs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ execParserPure pprefs pinfo args =
--
-- This function can be used, for example, to show the help text for a parser:
--
-- @handleParseResult . Failure $ parserFailure pprefs pinfo ShowHelpText mempty@
-- @handleParseResult . Failure $ parserFailure pprefs pinfo (ShowHelpText Nothing) mempty@
parserFailure :: ParserPrefs -> ParserInfo a
-> ParseError -> [Context]
-> ParserFailure ParserHelp
Expand Down

0 comments on commit 9bdeef6

Please sign in to comment.