Created
July 22, 2019 14:42
-
-
Save vivekramaswamy/54504fcae5f4a83ba60e482bf8ab6561 to your computer and use it in GitHub Desktop.
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
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