[Haskell-beginners] Application of lookup function