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

Use cabal sandboxes for building UHC #47

Open
phile314 opened this issue Feb 27, 2015 · 3 comments
Open

Use cabal sandboxes for building UHC #47

phile314 opened this issue Feb 27, 2015 · 3 comments

Comments

@phile314
Copy link
Member

UHC could be built inside a cabal sandbox instead of using the global package db. This would avoid
any collisions between wrong package versions already installed.

Just an idea, not a problem for me. Would make it easier for other people to install it I think.

@seaneshbaugh
Copy link

Seconding this. In general I prefer to use sandboxed libraries if possible. I admittedly didn't try very hard, but I couldn't figure out a way to get make to work with sandboxed libraries. I was able to get configure to work by adding "--package-db" to the call to ghc-pkg in the configure script.

@phile314
Copy link
Member Author

phile314 commented Apr 6, 2015

The Nix package for UHC actually does something similar, although it does not use sandboxes but just plain ghc-pkg. But it at least points out where the changes need to be made.

https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/compilers/uhc/default.nix#L23-L36

@wrengr
Copy link

wrengr commented Jun 11, 2015

I'd also be interested in getting Cabal sandboxes to work for compiling UHC

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