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

Ctrl-C in cabal repl shouldn't exit the repl (just like GHCi) #1610

Closed
adimit opened this issue Dec 9, 2013 · 8 comments
Closed

Ctrl-C in cabal repl shouldn't exit the repl (just like GHCi) #1610

adimit opened this issue Dec 9, 2013 · 8 comments

Comments

@adimit
Copy link

adimit commented Dec 9, 2013

When running ghci I can use Ctrl-C to interrupt actions that have obviously gone AWOL, or cancel a long running computation without entirely exiting GHCi itself.

This does not work if GHCi was started via cabal repl. If cabal repl were to trap SIGINT and pass it on to GHCi, which would do the right thing with it, that would make my life a lot easier.

Alternatively, a different way to cancel a computation without (expensively) exiting the repl should be provided.

(Sorry, I clicked this twice, on accident. Please delete the other #1609, if possible.)

@23Skidoo
Copy link
Member

23Skidoo commented Dec 9, 2013

Looks like a duplicate of #1560.

@adimit adimit closed this as completed Dec 9, 2013
@adimit
Copy link
Author

adimit commented Dec 9, 2013

Yeah, that's true! I didn't find it!

@23Skidoo
Copy link
Member

23Skidoo commented Dec 9, 2013

Also: #1535.

@adimit
Copy link
Author

adimit commented Dec 9, 2013

Though, it seems that this should've been fixed long ago, but I still experience the issue…

@23Skidoo
Copy link
Member

23Skidoo commented Dec 9, 2013

Which version are you running?

@adimit
Copy link
Author

adimit commented Dec 9, 2013

Recent hackage version: 1.18.0.2 of cabal-install, 1.18.0 of Cabal

@23Skidoo
Copy link
Member

23Skidoo commented Dec 9, 2013

@adimit Try with a newer version of Cabal.

@adimit
Copy link
Author

adimit commented Dec 9, 2013

That did the trick (I had to reinstall both Cabal and cabal-install.) Thank you very much, @23Skidoo for your help!

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