[Haskell-cafe] Parsec float
Bryan O'Sullivan
bos at serpentine.com
Fri May 29 22:10:11 EDT 2009
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090529/eac1d91b/attachment.html
More information about the Haskell-Cafe
mailing list