[Haskell-cafe] Parsec float

Bartosz Wójcik bartek at sudety.it
Sat May 30 11:09:12 EDT 2009


On Saturday 30 May 2009 03:10:11 Bryan O'Sullivan wrote:
> On Fri, May 29, 2009 at 5:04 PM, Bartosz Wójcik <bartek at sudety.it> wrote:
> > I don't undersdand what is being missed.
>
> Brevity.
>
> > liftM f m1              = do { x1 <- m1; return (f x1) }
> > so
> > liftM fromIntegral integer
> > will result the same.
>
> Yes, and there's less code to read if you use liftM or <$>, hence fewer
> moving parts to understand.

OK, thats clear.  BTW: reading RWH I could not memorize what those liftM 
funtions meant. 
Best,
Bartek




More information about the Haskell-Cafe mailing list