Y
Hacker News
new
|
ask
|
show
|
jobs
by
lalaithion
3117 days ago
One fun thing is how -> is basically just an infix operation that takes two types as arguments and returns a new type.
add :: (->) Int Int add x y = x + y
1 comments
leshow
3117 days ago
It's the function type, data (->) a b. It is commonly written in infix notation though.
link