[Haskell-beginners] Re: Count how often a menu has been selected
Felipe Lessa
felipe.lessa at gmail.com
Sat Jul 25 21:52:24 EDT 2009
On Sat, Jul 25, 2009 at 08:22:33PM +0200, Bernhard Lehnert wrote:
> this works great except for the "print a" part which I replaced by:
>
> b <- readIORef a
> print b
Woops, sorry :). Tip: most haskellers would prefer either
readIORef a >>= print
or
print =<< readIORef a
even if you are already in a 'do' block.
--
Felipe.
More information about the Beginners
mailing list