Since adding parsing support for empty record expressions (i.e.: {}), defining an empty module (see below) raises a parsing error.
module M = {};
Potential solution
Make the empty record into a literal (instead of an expression) which would allow reusing the same token for empty modules and empty records (similar to fun_def and UNIT)
Description
Since adding parsing support for empty record expressions (i.e.:
{}
), defining an empty module (see below) raises a parsing error.Potential solution
Make the empty record into a literal (instead of an expression) which would allow reusing the same token for empty modules and empty records (similar to
fun_def
andUNIT
)