Created
March 3, 2019 23:38
-
-
Save Lazzlo2096/a66935421d10e234f5cd7a9d4e729c1e to your computer and use it in GitHub Desktop.
monadsss
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
main = | |
putStrLn "What's your name?" >> | |
getLine >>= | |
--(\s -> putStrLn $ "Hello " ++ s) | |
-- \x -> return ("Hello " ++ x) >>= putStrLn | |
return.("Hello " ++) >>= putStrLn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment