[Haskell-cafe] IO in lists
Bulat Ziganshin
bulat.ziganshin at gmail.com
Tue Jan 16 09:41:34 EST 2007
Hello Magnus,
Tuesday, January 16, 2007, 2:34:51 PM, you wrote:
> I can take getChar and create an infinate list:
> listChars = getChar : listChars
> but how do I go about creating a finite list, e.g. a list that ends as
> soon as 'q' is pressed?
you definitely should look into http://haskell.org/haskellwiki/IO_inside
--
Best regards,
Bulat mailto:Bulat.Ziganshin at gmail.com
More information about the Haskell-Cafe
mailing list