It used to be the case in #Haskell that
:t 3
would give you
3 :: Num a => a
but
let x = 3
:t x
would give you
x :: Integer
because storing a value in variable forced the system to commit to a specific type.
Nowadays, though, the latter gives you
x :: Num a => a
What changed? I'm at a loss as to how to search the web for an answer to this one.
@peterdrake Write a stackoverflow question
@peterdrake
The answer atleast makes sense ;)