I may be missing something, but wouldn't it make sense to *not* add the enclosing brace if currently there's a missing *opening* brace? If I understand correctly the code, this is what would happen:

```
xs map { ^  }}  ==> // type `{`
xs map { {^} }}
```
while, most likely, the user just wants to balance existing braces