Skip to content

Instantly share code, notes, and snippets.

@vivekramaswamy
Created July 22, 2019 14:42
Show Gist options
  • Save vivekramaswamy/54504fcae5f4a83ba60e482bf8ab6561 to your computer and use it in GitHub Desktop.
Save vivekramaswamy/54504fcae5f4a83ba60e482bf8ab6561 to your computer and use it in GitHub Desktop.
data Employee =
Coder |
Manager |
Vp |
Ceo deriving (Eq, Show)
reportBoss::Employee->Employee->IO()
reportBoss e e' =
putStrLn $ show e ++ " is the boss of " ++ show e'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment