well-typed / optics

Optics as an abstract interface
374 stars 24 forks source link

Clarify makeFieldLabels prefix requirements #472

Open adamgundry opened 1 year ago

adamgundry commented 1 year ago

Talking to @edsko I think the current distinction between makeFieldLabels and makeFieldLabelsNoPrefix is a bit non-obvious. In particular, if a user uses makeFieldLabels on a datatype that has no prefixes, it will silently succeed but generate no LabelOptic instances.

I think we should: