[Haskell-cafe] Re: Read a single Char

Neil Mitchell ndmitchell at gmail.com
Tue Oct 24 12:27:51 EDT 2006


> I have a similar question. When I use getChar with Hugs the newline
> (caused by pressing 'Enter')  seems to be carried over into the next
> call of main, where it is treated as a single input character.
> The workaround is getLine and head, but it would be nice to drop the
> newline right away. I suppose the solution offered here:

Hmm, sounds like a bug in WinHugs, I'll check it out.



More information about the Haskell-Cafe mailing list