[Haskell-beginners] dealing with chained functions