TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Why I don’t like the lens library

11 pointsby hamidrover 11 years ago

3 comments

cantankerousover 11 years ago
I can sympathize with this post. I&#x27;ve used lenses a handful of times now in my Haskell, and I find myself using them generally for the same thing every time. I feel like my use case with lenses is a tiny fraction of the lens library is capable of doing and I&#x27;m sort of perplexed what I&#x27;d use the rest of the library for. That&#x27;s not bashing on the library at all, I think it&#x27;s totally awesome, I just only use it for one thing, basically. It&#x27;s a HUGE-ly engineered beast. I&#x27;m sure Edward Kmett knows what he&#x27;s doing way more than I do.<p>It&#x27;s not that hard to implement a little lens type and make the basic functions you want on it (without the template Haskell goodies, of course). I&#x27;ve also done that in at least one case. I&#x27;d really like to learn some of the more advanced things I can do with the lens library, though.
评论 #6543195 未加载
acomarover 11 years ago
The comments in the reddit thread[1] are worth reading, especially those by the author of this library, edwardk.<p>[1] <a href="http://www.reddit.com/r/haskell/comments/1o6iqs/why_i_dont_like_the_lens_library/" rel="nofollow">http:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;haskell&#x2F;comments&#x2F;1o6iqs&#x2F;why_i_dont_l...</a>
miahiover 11 years ago
The title should have a Haskell tag.