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
20082026
-
They are in fact well structured and not random at all. Take a look at this: https://github.com/ekmett/lens/wiki/Operators
comment by klntsky · 2022-12-06 · in Exercises for understanding Haskell Lenses (2019) -
…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 -
So that's where the lens notation comes from... https://github.com/ekmett/lens/wiki/Examples > ("hello","world")^._2
comment by Twisol · 2020-11-22 · in What is your favorite C programming trick? (2009) -
…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…
comment by pron · 2020-03-13 · in Oracle's history highlights a possible downside to its stance on API copyrights -
…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 -
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) -
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? -
…[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) -
…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…
comment by mightybyte · 2015-01-19 · in I think I've solved the Haskell records problem -
…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 -
…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 -
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
comment by applicative · 2012-10-31 · in Haskell in Production: The good, the bad, and the ugly