News for hackers. Stuff that matters.
Re:IO Monad Considered Harmful by dan00 on Friday January 23, 2015 @05:21AM (#8934161)
> getLine >>= (return . (++) "Hello, ") >>= putStrLn

A pointfree solution - if you want one - would be more in the form of:

    getLine >>= putStrLn . ("Hello, " ++)
It's really mostly about getting used reading pointfree style, but there's certainly an overuse of pointfree style in some Haskell code, then it gets pointless.

There are no comments on this comment yet.