the indentation explodes with "Illegal token: data" after hitting TAB twice. It seems that all reserved words can legally be used as field names, which (in particular) allows FFI support of JS record types with arbitrary field names.
It's not obvious how to fix this. A workaround is to double-quote the record field names, but this really shouldn't be necessary.
Given the apparently-legal snippet:
the indentation explodes with "Illegal token: data" after hitting TAB twice. It seems that all reserved words can legally be used as field names, which (in particular) allows FFI support of JS record types with arbitrary field names.
It's not obvious how to fix this. A workaround is to double-quote the record field names, but this really shouldn't be necessary.