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

Depend on happy when installing haskell-src-exts #112

Closed
ndmitchell opened this issue May 29, 2015 · 3 comments
Closed

Depend on happy when installing haskell-src-exts #112

ndmitchell opened this issue May 29, 2015 · 3 comments

Comments

@ndmitchell
Copy link
Contributor

See haskell-suite/haskell-src-exts#14. Stack should have some reasonable story for installing happy or ensuring it is available before building haskell-src-exts. I had a Hoogle user bump into this problem yesterday. The story may be that stack setup ensures happy.exe is present.

@snoyberg
Copy link
Contributor

This hopefully already works, and better than you were expecting. stack automatically detects build tool dependencies and installs them on demand. So trying to install hoogle will detect the necessary happy build tool and install it. I checked on my machine with the following stack.yaml, and stack build --dry-run included happy:

resolver: lts-2.5
extra-deps:
- hoogle-4.2.41
packages: []

Note that I used lts-2.5 arbitrarily as a plan I hadn't built anything with yet.

@ndmitchell
Copy link
Contributor Author

Awesome! In that case this ticket is a note to document it somewhere, and ideally add a test.

snoyberg added a commit that referenced this issue May 29, 2015
@snoyberg
Copy link
Contributor

Good call, I just updated the README with a FAQ on build tools (though perhaps it should be elaborated upon), and added an item to our test suite issue (#26) about including this.

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