[Haskell-beginners] type of pattern matching