4 ms·
non-monadic: import Data.Char main = (fmap.fmap) toUpper getLine monadic (but still doesn't utilize extra power granted by monadic interface, since i
by platz 12y ago
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