[Haskell-beginners] type class functions as function arguments