4 ms·
> getLine >>= (return . (++) "Hello, ") >>= putStrLn A pointfree solution - if you want one - would be more in the form of: getLine >>= putStrLn . ("Hello
by dan00 12y ago
> 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.