[Haskell-beginners] pattern match vs. pure function