[Haskell-beginners] Re: Ignoring the result of a monadic
computation
Tim Baumgartner
baumgartner.tim at googlemail.com
Sat Nov 20 03:18:48 EST 2010
2010/11/20 Ertugrul Soeylemez <es at ertes.de>:
> Importing Control.Applicative, you can do this:
>
> getLine <* something >>= putStrLn
That's exactly what I was looking for. And indeed I wanted to consume
some whitespace in a parser, just like you said. So I will start to
read about Control.Applicative in Brent's Typeclassopedia soon.
Thanks a lot
Tim
More information about the Beginners
mailing list