Typically the monadic IO goes like this:
main :: IO ()
main0a = putStrLn =<< getContents
If you prefier, an opposite is also possible:
main :: IO ()
main = getContents >>= putStrLn
Choice is yours.
As of March 2020, School of Haskell has been switched to read-only mode.
Typically the monadic IO goes like this:
main :: IO ()
main0a = putStrLn =<< getContents
If you prefier, an opposite is also possible:
main :: IO ()
main = getContents >>= putStrLn
Choice is yours.