stefan-hoeck/idris2-sop

derive Uninhabited

dvc94ch opened this issue · 2 comments

that one is quite a pain to implement if you have a few variants

Could you draft a quick example, how you'd do that using the SOP approach? Because to the best of my knowledge, Uninhabited usually talks about families of types, while in this library, we can only handle parameterized data types.

Maybe needs a separate library then, haven't put much thought into it. Just remember writing 250loc implementing uninhabited and seemed like this library was doing something similar.