3 ms·
You are perfectly fine importing the module Control.Lens.Combinators[0], which has the full functionality of lens except the operators. There's nothing you can
by kccqzy 11y ago
You are perfectly fine importing the module Control.Lens.Combinators[0], which has the full functionality of lens except the operators. There's nothing you can do with operators but can't do with normal functions named with words.
[0]: http://ekmett.github.io/lens/src/Control-Lens-Combinators.html http://ekmett.github.io/lens/src/Control-Lens-Combinators.ht...
- eru 11y agoOh, definitely. Haskell approach to operators and overloading is exactly the Right Way: operators are weirdly syntaxed function, and you can add your own. No need to make bit-shifting do IO.