Just keeping track of this, we should pull it into MaPLe too: https://github.com/MLton/mlton/pull/627