4 ms·
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
by lalaithion 9y 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
- leshow 9y agoIt's the function type, data (->) a b. It is commonly written in infix notation though.