[Haskell-cafe] Re: Read a single Char
Hans van Thiel
hthiel.char at zonnet.nl
Tue Oct 24 15:15:59 EDT 2006
No, it happens with Hugs on Fedora Core 5 (the fc5 Hugs package), not
WinHugs.
Thanks,
Hans
On Tue, 2006-10-24 at 17:27 +0100, Neil Mitchell wrote:
> Hi
>
> > 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
> Thanks
>
> Neil
More information about the Haskell-Cafe
mailing list