[Haskell-beginners] Read just one word from input

Alexander Batischev eual.jp at gmail.com
Sun Feb 26 22:00:42 CET 2012


On Sun, Feb 26, 2012 at 12:31:06PM -0800, Tim Perry wrote:
> Turn off buffering and call "words"

What "words" do you mean? There's no suck function in System.IO.

And if you're talking about Data.List's "words", meaning something like:

  getLine >>= words

then it's not what I need - such a construction would consume whole
line, while function I'm seeking should consume as few words as
required.

P.S. Excuse me for mistakenly replying directly to you, Tim.

-- 
Regards,
Alexander Batischev

4096R/0C8BFD03
CE6C 4307 9348 58E3 FD94  A00F 3569 61A2 0C8B FD03

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://www.haskell.org/pipermail/beginners/attachments/20120226/0a94df48/attachment.pgp>


More information about the Beginners mailing list