News for hackers. Stuff that matters.
Re:IO Monad Considered Harmful by platz on Friday January 23, 2015 @01:30AM (#8933663)
non-monadic:

    import Data.Char

    main = (fmap.fmap) toUpper getLine
monadic (but still doesn't utilize extra power granted by monadic interface, since it produces the same result as above):

    import Data.Char

    main = do
      x <- getLine
      return $ map toUpper x

There are no comments on this comment yet.