flupe / generics

MIT License
21 stars 6 forks source link

Improve support for universe-polymorphism #8

Open flupe opened 1 year ago

flupe commented 1 year ago

What we claim in our paper is that it's fine to encode universe-polymorphic datatypes using our descriptions, as long as quantification over levels happen outside of the description.

However, currently the deriveDesc macro doesn't do this automatically, which means you cannot derive descriptions for universe-polymorphic datatypes right now.

Two approaches: