This question already has an answer here: 开发者_Go百科What is the monomorphism restriction? (1 answer)
Numeric literals have a polymorphic type: *Main> :t 3 3 :: (Num t) => t But if I bind a variable to such a literal, the polymorphism is lost: