Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Recursive yet unboxed #2188
We (@gasche and I) give a new implementation of the unboxability check for single-constructor types, following theoretical investigations presented in our JFLA 2019 paper (which refines the work of @SimonColin as part of an internship with @gasche). Mutually-recursive type definitions can now contain unboxed declarations, which was not the case before.
The history is not as clean as I would like, but we believe that the code is ready for review. I hope to rebase the PR later and clean the history in passing.
Below are two remarks that I wrote on the implementation.
We distinguish the notion of "unboxability" (of type definitions) and
Ideally, the typedecl_separability module would never depend on
There is a strange duplication between
I thought about this, and I don't see any way to do better than having