Hacker GitHub

← All repos

ekmett/lens

View on GitHub ↗ ★ 2,110 Haskell

Lenses, Folds, and Traversals - Join us on web.libera.chat #haskell-lens

13 mentions on Hacker News by 13 people: 0 stories, 13 comments · first 2012-10-31 · latest 2022-12-06

Mentions per year 13 mentions · busiest year 2013 (2)
20082026
  1. They are in fact well structured and not random at all. Take a look at this: https://github.com/ekmett/lens/wiki/Operators
  2. …are. If you want to understand what lenses are the package links to a helpful wiki and tutorial: https://github.com/ekmett/lens/wiki/Overview All within reach within seconds of discovering the function. To understand any tool you must…
    comment by rowanG077 · 2022-06-08 · in Dhall: A Gateway Drug to Haskell
  3. So that's where the lens notation comes from... https://github.com/ekmett/lens/wiki/Examples > ("hello","world")^._2
  4. …do)? What about Haskell's mtl or lens that do even less? They seem to think they're copyrighted: https://github.com/ekmett/lens/blob/master/LICENSE Oracle sued over the act of copying of 11K lines of extremely creative code for commercial…
  5. …are implemented, not if you're happy just using them. Learn as little or as much as you'd like. [0] https://github.com/ekmett/lens/wiki/Examples
    comment by mrkgnao · 2017-08-05 · in A formalization of category theory in Coq
  6. Two links that come to mind: - https://github.com/ocharles/netwire-classics - https://github.com/ekmett/lens/blob/master/examples/Pong.hs
    comment by haasn · 2016-07-25 · in Purely Functional Retrogames (2008)
  7. A select few operators (out of hundreds) for a single Haskell library: https://github.com/ekmett/lens/wiki/Operators (For full disclosure, the lens library is infamous for this.)
    comment by eru · 2016-03-27 · in What do you call this in Ruby?
  8. …[2] http://www.janis-voigtlaender.eu/papers/ThreeComplementaryAp... [3] https://github.com/ekmett/lens
    comment by ShaneWilton · 2015-07-23 · in In J, functions have inverses (2012)
  9. …the reduction of side effects. And again, much of this boilerplate can be gotten rid of. See https://github.com/ekmett/lens/blob/master/examples/Pong.hs#... for an example of some really nice imperative code made possible by the lens…
  10. …nice. For a practical quickstart guide, I'de recommend the Github page over the Hackage page: https://github.com/ekmett/lens#lens-lenses-folds-and-travers...
    comment by jarrett · 2014-05-06 · in Fat JSON
  11. …Haskell projects on Github — a library that does lenses, folds, traversals, getters and setters: https://github.com/ekmett/lens With that library, you can write things like _1 .~ "hello" $ ((),"world")
    comment by chc · 2013-03-12 · in Clojure: All grown up
  12. …a) data Lens a b = Lens (a -> Store b a) on which a lot of the Data.Lens internals are based. [0] https://github.com/ekmett/lens [1] http://stackoverflow.com/questions/8766246/what-is-the-store...
    comment by crntaylor · 2013-02-10 · in The Algebra of Algebraic Data Types
  13. The state of the art is the amazing `lens` package https://github.com/ekmett/lens/wiki/Overview . See this example, https://github.com/ekmett/lens/blob/master/examples/Pong.hs