Haskell/Lens people, can somebody please help me with some mnemonics for the `Lens s t a b` type?
The docs don't seem to give full names to these 4 random letters and my mind just doesn't work that way...
Conversation
Section labeled "stab stab stabbity stab stab stab" contains following which isn't really a mnemonic:
"focus on an inner value of type a... within an outer value of type s; and perhaps; provide (a) new inner value(s) of type b... to produce a new outer value of type t"
1
1
Do Haskell programmers just not think in terms of words? I just don't understand...
Meanwhile: twitter.com/CodaFi_/status and
3
8
[Galaxy brain] A language ecosystem where you can toggle between long and short variable names.
1
5
Maybe we just need a type level forth. No need for naming pesky parameters then!
1
2
Show replies
I mean, the utterly no-thinking-involved, if verbose, option would be "functor", "monad", and "trans". (Lucky here that Haskell lexically distinguishes constructors from variables.) No-thinking-involved has its advantages. :)





