This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
Generalized setters and getters - Lenses lite for Elm.
version 1.0.0
license BSD3
native-modules False
elm-version 0.15.0 <= v < 0.16.0
Tag 1.0.0
Committed At 2015-05-26 20:28:42 UTC
maxsnew/lazy 1.0.1 <= v < 2.0.0 1.1.0
elm-lang/core 2.0.1 <= v < 3.0.0 2.1.0




As I just realized, I 'reinvented' Evan's Focus library and he's done a great job at giving an introduction.

A quick comparison to what this library handles differently:

    • Since Accessors are just aliases for functions, libraries can provide Accessors without actually depending on this library!
    • Updates may also change the type of the smaller thing
    • Doesn't have the same level of neatness as Evan's API
    • Possibly more complex because of more type parameters

Meanwhile I decided to use Evan's library for my simple purposes. I'll upload this library anyway, only to give others polymorphic lenses if they need them. Accessors are just generalized getters and setters for arbitrary structures and their parts. This aims to be a simple version of lenses.