News for hackers. Stuff that matters.
Re:Reading Simple Haskell by lalaithion on Sunday December 10, 2017 @03:03AM (#15890491)
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

Re:Reading Simple Haskell by leshow on Sunday December 10, 2017 @04:37AM (#15890676)
It's the function type, data (->) a b. It is commonly written in infix notation though.