
I'm looking over haskeline. It looks like I have to modify some of my code
that is in the IO monad right now. I use 'evaluate' in several places, and
also 'evaluate $ force', to make sure that IO exceptions are encountered
where I can catch them. Can I use 'evaluate' with InputT? I'm muddled
headed about what to do. I guess I would lift 'evaluate' into the inner
monad? I am not sure what those words mean. How would I catch IO exceptions?
On Thu, Jul 28, 2016 at 5:35 PM, Dennis Raddle
Thanks. I'll install haskeline
On Thu, Jul 28, 2016 at 5:05 PM, David McBride
wrote: You will have to use the haskeline library. FYI that is the library that makes ghci work.
On Thu, Jul 28, 2016 at 6:09 PM, Dennis Raddle
wrote: I wrote a program first in Windows, where it works as expected, and now I'm using it in OS X and getting undesired behavior.
It reads lines from the terminal using the getLine function. In Windows (DOS, actually) the up and down arrows can be used to choose previously entered lines. However, this does not work in bash in OS X.
What do I need to get the history available via the arrow keys?
D
_______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
_______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners