[Haskell-beginners] idiomatic haskell question