Skip to content

Commit

Permalink
Update code snippet in parserFailure haddocks
Browse files Browse the repository at this point in the history
ShowHelpText takes an extra argument now so the snippet was failing compilation.
  • Loading branch information
jaspervdj committed Aug 16, 2022
1 parent 362c61c commit 30a9b61
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 30a9b61

Please sign in to comment.