[Haskell-beginners] Question regarding infering the type of a function