Skip to content

cabal new-run doesn't work #5074

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

Closed
mitchellwrosen opened this issue Jan 27, 2018 · 2 comments
Closed

cabal new-run doesn't work #5074

mitchellwrosen opened this issue Jan 27, 2018 · 2 comments

Comments

@mitchellwrosen
Copy link

I feel very silly for filing this ticket, because I looked through some open issues and found other people using cabal new-run just fine. But anyway, cabal new-run isn't working in this sample repo. It builds the executable, but doesn't run it. What might I be doing wrong?

@hvr
Copy link
Member

hvr commented Jan 27, 2018

I suspect you're using a non-bleeding edge cabal version? Afaik, cabal new-run wasn't fully functional yet in cabal 2.0 exhibiting the very behaviour you're seeing; and most people dogfooding new-build tend to use cabal 2.1 (i.e. cabal HEAD) -- where I can confirm that cabal new-run works as expected on your repro case. This is also part of the reason my Travis script generator defaults to the cabal-install-head package, as it relies on fixes/features available in the latest cabal in-dev version. Cabal 2.2 will already be a big improvement over cabal 2.0, and hopefully the next release after cabal 2.2 will be already cabal 3.0 (see also https://summer.haskell.org/ideas.html#cabal-new-build) which will make new-build the default build (which implies that at that point we'll have to be minimally feature complete).

PS: It's fine to file issues here, but I'd also like to point out that you can come to the #hackage IRC channel on freenode if you like to discuss things in a more interactive medium

@mitchellwrosen
Copy link
Author

Makes sense, thanks! I was using the latest cabal-install from Hackage but I'll use HEAD from now on.

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