Hacker News new | ask | show | jobs
by eru 3738 days ago
A select few operators (out of hundreds) for a single Haskell library: https://github.com/ekmett/lens/wiki/Operators

(For full disclosure, the lens library is infamous for this.)

1 comments

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.ht...

Oh, 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.