News for hackers. Stuff that matters.
Re:A Gentle Intro to Monads … Maybe? by dllthomas on Friday January 17, 2014 @06:01PM (#7079070)
You might be conflating monads with do-notation? Do-notation is a syntactic tweak to make using monads a little prettier, and is implemented in the language, but you can just as well use monads without it. Consider the IO example:

    main = getArgs >>= mapM_ putStrLn
where

    getArgs :: IO [String]
    putStrLn :: String -> IO ()
    mapM_ :: (a -> m b) -> [a] -> m ()

There are no comments on this comment yet.