[Haskell-beginners] Let the compiler do the work