GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
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?
Do you mean you are running a program that uses readline inside ghci? That's scary.
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!
I understand the scenario. It's just that that would be pretty difficult to fix. I wouldn't know where to start.
Thanks for understanding. If you can't fix it I will try to find a way around it.
Thank you for your time,
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.
Thanks Chris. I just went back to inferior mode and everything seems to be working fine.