I've forgotten the syntax to quote the type of a type family and it's bloody hard to find the right keywords to search for it... but you have a product type family like:
Except that you will end up generating multiple lenses for the same field across type family instances so it may be a no go... but that's a different problem.
I've forgotten the syntax to quote the type of a type family and it's bloody hard to find the right keywords to search for it... but you have a product type family like:
I get a parse error with:
I recall there is a way to quote the type but I can't recall what it is and I'm having trouble finding it. Anyone happen to know?
Does it work on the value constructor?
Seems to compile at least... :thinking:
I think that is the key. Seems to work as expected.
If you need to generate lenses for a data family instance this seems to be the way to go.
Except that you will end up generating multiple lenses for the same field across type family instances so it may be a no go... but that's a different problem.