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

Struggling to build #2

Open
jfischoff opened this issue Oct 4, 2014 · 4 comments
Open

Struggling to build #2

jfischoff opened this issue Oct 4, 2014 · 4 comments

Comments

@jfischoff
Copy link

I'm struggling to get the project to select versions it can actually build with. Can you check in a cabal constraints file, using cabal freeze?

@joshcough
Copy link
Owner

I'll take a look at this now. I didn't know about cabal freeze, but, I'd like to update this to use cabal sandbox. I can probably do both?

@jfischoff
Copy link
Author

Probably from a repo perspective, using a sandbox just means changing the .gitignore to include the .cabal-sandbox directory and cabal.sandbox.config file. I'm pretty sure the cabal freeze is seperate. It just looks at your package database and prints out all the versions you are using as a cabal.configs files as cabal --constraints.

@joshcough
Copy link
Owner

I just noticed that I have a big fat TODO in the Understanding Dependencies section. I think it's best to just remove all the upper bounds on my dependencies. That's realistically what I do in practice anyway, and is probably the best way to 'get started'. If you have an upper bound, it's probably because you know what you're doing.

The only thing I risk by not having the upper bounds is that if a library I depend on changes things I could break, but I figure in that case I can just update the code.

@joshcough
Copy link
Owner

Ok, I got advice on #haskell to not remove my upper bounds, but to keep them up to date every 3 months, so I'll do that. But I think I can still freeze each time I update the dependencies. Let me know if you think this makes sense.

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