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

Dependancy Missing #22

Closed
fubuloubu opened this issue Oct 26, 2017 · 6 comments
Closed

Dependancy Missing #22

fubuloubu opened this issue Oct 26, 2017 · 6 comments

Comments

@fubuloubu
Copy link

pretty-show-1.6.13 depends on happy-1.19.8 when installing from Cabal, but this is not listed in the required dependencies. I traced this error while trying to install pandoc-citeproc from scratch for a non-haskell project.

@yav
Copy link
Owner

yav commented Oct 26, 2017

The dependency on happy is listed in the build-tools section of the Cabal file.

Or did you mean that we are depending on that specific version of happy? If that's the case, could you please post the error you got, so I can see how to fix it.

@jgpacker
Copy link

Configuring pretty-show-1.6.13...
setup-Simple-Cabal-1.22.5.0-x86_64-linux-ghc-7.10.3: The program 'happy' is
required but it could not be found.

I think I got the same error

@jgpacker
Copy link

Oddly, it worked after I manually installed the happy package i.e. sudo cabal install happy

@fubuloubu
Copy link
Author

Yeah, I don't think that specific version but cabal doesn't list it for whatever reason

@fubuloubu
Copy link
Author

I.e. same message as above

@yav
Copy link
Owner

yav commented Oct 27, 2017

I see. The issue here is with Cabal---dependencies on external tools are not build automatically, instead it just throws an error, and you have to install them manually. There is a fairly in-depth discussion of this issue here: haskell/cabal#220

It looks like the latest Cabal does have a new pragma build-tool-depends, which will auto-build tool packages as long as you use the Nix-style new-build command. I just pushed a tweak to the cabal file, that adds this pragma.

Unfortunately, this would not help if you are using an older Cabal, or just the standard build mode (which is probably the case for most users, currently) and you'd still have to install the happy dependency manually.

@yav yav closed this as completed Oct 27, 2017
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