Skip to content

Instantly share code, notes, and snippets.

@Lazzlo2096
Created March 3, 2019 23:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Lazzlo2096/a66935421d10e234f5cd7a9d4e729c1e to your computer and use it in GitHub Desktop.
Save Lazzlo2096/a66935421d10e234f5cd7a9d4e729c1e to your computer and use it in GitHub Desktop.
monadsss
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