[Haskell-beginners] type inference question