当匿名函数绑定到名称时,为什么类型推断不同?
Prelude> :type (+)
(+) :: Num a => a -> a -> a
Prelude> let bar (x,y) = x+y
Prelude> :type bar
bar :: Num a => (a, a) -> a
Prelude> :type \(x,y)->x+y
\(x,y)->x+y :: Num a => (a, a) -> a
Prelude> let foo = \(x,y)->x+y
Prelude> :type foo
foo :: (Integer, Integer) -> Integer