Erik Hesselink <[email protected]> writes: >>> importing Control.Applicative
>> main = print =<< liftM2 (+) readLn (return 3) >> [...] line noise > Why not just: > > main = print . (+3) =<< readLn Or using applicative: print =<< (+3) <$> readLn ? (Which separates the printing from the addition.) -k -- If I haven't seen further, it is by standing in the footprints of giants _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
