Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not compatible with optparse-applicative 0.16 #5379

Closed
Lysxia opened this issue Aug 28, 2020 · 2 comments
Closed

Not compatible with optparse-applicative 0.16 #5379

Lysxia opened this issue Aug 28, 2020 · 2 comments

Comments

@Lysxia
Copy link
Contributor

Lysxia commented Aug 28, 2020

General summary/comments

optparse-applicative-0.16.0.0 added an argument to the ShowHelpText constructor of its ParseError type.

I can confirm that 0.15.1.0 fixes the build.

Steps to reproduce

Build stack with optparse-applicative-0.16.0.0

src/Options/Applicative/Complicated.hs:155:17: error:
    • Couldn't match expected type ‘ParseError’
                  with actual type ‘Maybe String -> ParseError’
    • Probable cause: ‘ShowHelpText’ is applied to too few arguments
      In the first argument of ‘abortOption’, namely ‘ShowHelpText’
      In the expression: abortOption ShowHelpText
      In the expression:
        abortOption ShowHelpText
          $ long help <> help Show this help text
    |
155 |     abortOption ShowHelpText $
    |                 ^^^^^^^^^^^^

Expected

(I use cabal) Cabal should pick a compatible version of optparse-applicative so the build succeeds.

Actual

Build fails.

Stack version

2.3.3 via Hackage

Method of installation

cabal-install

@chenrui333
Copy link

Any update on this issue?

@mpilgrem
Copy link
Member

The current package.yaml for Stack specifies optparse-applicative >= 0.17.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants