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

New loop #242

Merged
merged 6 commits into from
Mar 14, 2015
Merged

New loop #242

merged 6 commits into from
Mar 14, 2015

Conversation

cchalmers
Copy link
Member

This is some code I wrote for the new builder. It includes a function for finding sandboxes: first it searches for environment variables, if that fails it looks for a cabal.sandbox.config file in the current directory and any parents. In the tests I did it seemed to work.

I also cleaned up the CmdLine loop output. It now prints out all the details first and uses a single line per successful compile. I also added a lock so if you save a file twice before it compiles it won't mess everything up.

Shouldn't break any backends.

This is hopefully a more robust way to find sandboxes. It searches for
the through several enrironment variable, then looks for cabal.sandbox.config in the current folder and any parents.
Make indentation consistent with the rest of the library.
@bergey
Copy link
Member

bergey commented Mar 13, 2015

Looks good to me.

@byorgey
Copy link
Member

byorgey commented Mar 14, 2015

Looks good to me too (as far as I can tell, though I admit to not quite following all the details).

byorgey added a commit that referenced this pull request Mar 14, 2015
@byorgey byorgey merged commit e76cdbc into master Mar 14, 2015
@byorgey byorgey deleted the new-loop branch March 14, 2015 01:59
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

Successfully merging this pull request may close these issues.

3 participants