[Haskell-cafe] IO in lists

Yitzchak Gale gale at sefer.org
Tue Jan 16 07:11:10 EST 2007


Oops, sorry, that should be:

listChars2 :: ListT IO Char
listChars2 = do
  c <- lift getChar
  if c == 'q'
    then return c
    else return c `mplus` listChars2


More information about the Haskell-Cafe mailing list