How would you go about generating lenses with the new DuplicateRecordFields
enabled?
I've already tried using makeLenses
, but nothing was generated at all.
I also tried importing my constructors with a qualifier to prevent name clashes between fields and lenses, but that didn't help either.
Are there some unresolved issues with template-haskell as it pertains to this new extension (I found a ticket in the GHC bug tracker to that effect, but it's been closed), or am I missing something obvious?