you can find the answer in the canonical duplicate, under **"When does it happen?"**. Specifically, it says "When a pattern binding consists of only a variable name it's called a simple pattern binding.. **The monomorphism restriction applies to simple pattern bindings!**". As defined by the Haskell Report, referenced in that answer as well.
– Will NessFeb 21 '19 at 10:07