2 ms·
> compared to e.g. Haskell lenses, the Elm lens code is ugly and verbose. Monocle isn't the only game in town for lenses. Arguably, you're still going to need
by pyrale 6y ago
> compared to e.g. Haskell lenses, the Elm lens code is ugly and verbose.
Monocle isn't the only game in town for lenses.
Arguably, you're still going to need to write the code that isn't generated, but the composition of lenses can be done using the generic composition (<</>>) too, which makes them much more elegant.