Skip to content

Instantly share code, notes, and snippets.

@maciejsmolinski
Created May 26, 2018 17:11
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 maciejsmolinski/c287de6f03b8652888dd024d3db9ed0d to your computer and use it in GitHub Desktop.
Save maciejsmolinski/c287de6f03b8652888dd024d3db9ed0d to your computer and use it in GitHub Desktop.
Good Morning Haskell
data Mood = Good | Bad
deriving (Show)
morning :: Mood -> String
morning mood = show mood ++ " Morning!"
main :: IO ()
main = putStrLn $ morning Good
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment