[Haskell-beginners] Is this scope range problem?