[Haskell-cafe] Stack overflow while programming imperatively