You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ cabal install hi --constraint="optparse-applicative<0.16"
Suggestions:
quick fix: make a revision on hackage adding the missing upper bound
long-term fix: fix the error and switch to optparse-applicative >= 0.16
Further details
Error:
cabal install hi
...
[11 of 12] Compiling Hi.Cli ( src/Hi/Cli.hs, dist/build/hi/hi-tmp/Hi/Cli.o )
src/Hi/Cli.hs:48:30: error:
• Couldn't match expected type ‘ParseError’
with actual type ‘Maybe String -> ParseError’
• Probable cause: ‘ShowHelpText’ is applied to too few arguments
In the third argument of ‘parserFailure’, namely ‘ShowHelpText’
In the second argument of ‘($)’, namely
‘parserFailure pprefs pinfo ShowHelpText mempty’
In the expression:
handleParseResult . Failure
$ parserFailure pprefs pinfo ShowHelpText mempty
|
48 | parserFailure pprefs pinfo ShowHelpText mempty
| ^^^^^^^^^^^^
cabal: Failed to build exe:hi from hi-1.2.0.2.
This fails:
This works:
Suggestions:
optparse-applicative >= 0.16
Further details
Error:
See similar issue at commercialhaskell/stack#5379.
The text was updated successfully, but these errors were encountered: