我真的不知道为什么这是一个类型错误:
foo :: (Eq a) => a -> a foo _ = 2
谁能解释一下?
haskell functional-programming
functional-programming ×1
haskell ×1