Adapt code to optparse-applicative 0.18.1 and later.
optparse-applicative switched to the 'prettyprinter' library in its latest release, which means the 'H.text' function has disappeared. Instead, 'H.pretty' can be used to convert all 'Pretty a' types into a renderable document.
This commit is contained in:
parent
79cf8f58d7
commit
ffb708be09
2 changed files with 2 additions and 2 deletions
|
@ -116,7 +116,7 @@ parseCmd progname progdesc allargs allcmds getparser =
|
|||
<*> getparser c
|
||||
<*> parserAnnexOptions (cmdannexoptions c)
|
||||
synopsis n d = n ++ " - " ++ d
|
||||
intro = mconcat $ concatMap (\l -> [H.text l, H.line])
|
||||
intro = mconcat $ concatMap (\l -> [H.pretty l, H.line])
|
||||
(synopsis progname progdesc : commandList allcmds)
|
||||
|
||||
{- Selects the Command that matches the subcommand name.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue