Skip to content

Why lens and not plain van Laarhoven lenses? #30

@peddie

Description

@peddie

From #bfpg:

peddie:

so lens and the new abstractions it provides are way, way more than just first-class records, but I'm not sure I've seen this articulated well for people who aren't already familiar with them

nkpart:

I agree. there seems to be enough material on lenses. but why lens the package over microlens

frase:

"ed wrote it" is a good enough reason to use lib A over lib B in 99% of cases :)

peddie:

pretend I'm a beginning haskeller: I don't know who ed is; all I know so far is that I get 22 pages of category theory, which I don't understand, in my cabal build log if I pull in 'lens'. why do I want traversals? prisms? plated? why are they all provided by one library? what are the engineering tradeoffs here? why not use the simplest van Laarhoeven lenses and just 'over' and 'view'? I often struggle to answer these questions clearly even to myself

This is a talk request; I don't feel qualified to give this talk, and I'm not sure how I'd approach it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    hack nightTopics that could be good for hack night

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions