Read hangs #69

Closed
jabolopes opened this Issue Jul 12, 2012 · 6 comments

Comments

Projects
None yet
3 participants

Hello,

Thank you very much for this emacs package: it is awesome!
I have been using haskell inferior mode for some time and today I have tried the new haskell-interactive-mode.
However, I am using the readline library and when trying to read something from the standard input the interactive process seems to hang.

Can you help me?

Best regards,
José

Contributor

pheaver commented Jul 12, 2012

Do you mean you are running a program that uses readline inside ghci? That's scary.

Hello,

It's not that I want to use readline inside GHCI just for the sake of it.
I want to make a program that when released gives readline features to the user on the command line.
And I use GHCI to test my program and, of course, I have to test the readline feature as well to make sure everything is working as a whole.

In any case, everything was working properly with inferior mode.
Do you think you can fix this for interactive mode?
I was trying interactive mode briefly and it seemed really cool and I would definitely like to switch to it permanently!

Best regards,
José

Contributor

pheaver commented Jul 12, 2012

I understand the scenario. It's just that that would be pretty difficult to fix. I wouldn't know where to start.

Hello,

Thanks for understanding. If you can't fix it I will try to find a way around it.

Thank you for your time,
José

Member

chrisdone commented Jul 18, 2012

Ah, right. Yeah, the interactive mode doesn't pretend to be a terminal. I can make it so at least typing newlines during an eval situation will send that to the inferior GHCi process, enabling the simple getLine workflow. Otherwise you're better off using the old inferior mode if it does that, or just use a real terminal.

@ghost ghost assigned chrisdone Jul 18, 2012

Thanks Chris. I just went back to inferior mode and everything seems to be working fine.

@chrisdone chrisdone closed this May 19, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment