[Haskell-beginners] Pattern matching over functions