[Haskell-beginners] How to avoid repeating code