Skip to content

Instantly share code, notes, and snippets.

@kylecorbelli
Last active July 5, 2018 17:54
Show Gist options
  • Save kylecorbelli/efacaf6f5a95cdc8f4327abac8f20e09 to your computer and use it in GitHub Desktop.
Save kylecorbelli/efacaf6f5a95cdc8f4327abac8f20e09 to your computer and use it in GitHub Desktop.
main :: IO ()
main = putStrLn $ first "Buddy"
type Name = String
first :: Name -> String
first name =
second name ++ third name
second :: Name -> String
second name =
"Welcome" ++ name ++ "!"
third :: Name -> String
third name =
(fourth name) ++ "!"
fourth :: Name -> String
fourth name =
" I wish my name was " ++ name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment