Re:Getters and Setters in Kind
by moomin on Tuesday October 19, 2021 @04:57AM
(#28916151)
I could be wrong (It's a common occurrence!), but I thought a lot of the lens perf relied on inlining that isn't as easy to pull off with a newtype/profunctor design. Can't find any references for performance comparisons.
optics uses newtypes. It loses infinitesimally in expressivity and not at all in performance, as far as I am aware. What were you thinking of?
https://hackage.haskell.org/package/optics