Commit a6be220b authored by Oscar Leijendekker's avatar Oscar Leijendekker

Using do notation

parent 049ab3a5
Pipeline #72682993 passed with stage
in 4 minutes and 27 seconds
......@@ -3,5 +3,6 @@ module Lib
) where
someFunc :: IO ()
someFunc =
return "Hello, Monad!" >>= putStrLn
someFunc = do
someValue <- return "Hello, Monad!"
putStrLn someValue
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment