This function is rather verbose for what it does, but it shouldn't exist in the first place. Instead of passing the depth Int around, you should work with a tabs String and then with `tabs + "\t"` instead of `depth + 1`. Should be better?