[Haskell-cafe] How to generalize executing a series of commands, based on a list?