Skip to content

Instantly share code, notes, and snippets.

View vivekramaswamy's full-sized avatar
💭
I may be slow to respond.

vivek ramaswamy vivekramaswamy

💭
I may be slow to respond.
View GitHub Profile
@vivekramaswamy
vivekramaswamy / pointfree.hs
Created July 28, 2019 12:29
show pointfree
--not pointfree
addAndDrop x y = x+1
--PointfreeVersion
addAndDrop = const.(1 +)
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'