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

Build failed (probably due to optparse-applicative-0.16) #166

Closed
2 tasks done
mitchblank opened this issue May 28, 2021 · 1 comment
Closed
2 tasks done

Build failed (probably due to optparse-applicative-0.16) #166

mitchblank opened this issue May 28, 2021 · 1 comment

Comments

@mitchblank
Copy link

Issue checklist:

Mac OS 11.4 (Intel)
ghc-8.6.5

  • What is the expected behavior?

Build completes

  • What is the actual behavior?
[3 of 3] Compiling Main             ( app/Main.hs, dist/build/psc-package/psc-package-tmp/Main.o )

app/Main.hs:601:50: error:
    • Couldn't match expected type ‘Opts.ParseError’
                  with actual type ‘Maybe String -> Opts.ParseError’
    • Probable cause: ‘Opts.ShowHelpText’ is applied to too few arguments
      In the third argument of ‘Opts.parserFailure’, namely
        ‘Opts.ShowHelpText’
      In the second argument of ‘($)’, namely
        ‘Opts.parserFailure
           Opts.defaultPrefs pinfo Opts.ShowHelpText mempty’
      In the expression:
        Opts.Failure
          $ Opts.parserFailure
              Opts.defaultPrefs pinfo Opts.ShowHelpText mempty
    |
601 |       Opts.parserFailure Opts.defaultPrefs pinfo Opts.ShowHelpText mempty
    |                                                  ^^^^^^^^^^^^^^^^^
  • What would help fix this issue?

Based on some googling it seems that a very similar error has bitten other projects due to optparse-applicative being upgraded to 0.16. For example see nmattia/niv#314

Probably needs some updating or that dependency needs to be pinned to 0.15.1

I'm not a haskell expert so I haven't investigated further

@mitchblank mitchblank changed the title (probably optparse-applicative-0.16) Build failed (probably due to optparse-applicative-0.16) May 28, 2021
@justinwoo
Copy link
Collaborator

Fixed by #168. This issue is caused most likely by someone trying to use nixpkgs haskellPackages to build psc-package for some unknown reason.

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

2 participants