Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: