4 ms·
Point of clarification for readers who aren’t familiar with Haskell: Haskell doesn’t have operators in the classic sense, since they’re just an alternate synta
by aranchelk 4y ago
Point of clarification for readers who aren’t familiar with Haskell:
Haskell doesn’t have operators in the classic sense, since they’re just an alternate syntax (infix) for regular functions; implemented in libraries. The Haskell ecosystem OTOH has a shitton of infix functions, as does Edward Kmett’s lens library. I don’t think there’s any reason to bother memorizing the ones that aren’t useful to you. You can always search them on Hoogle if you encounter one you don’t know. E.g. https://hoogle.haskell.org/?hoogle=%28%5E.%29&scope=set%3Astackage https://hoogle.haskell.org/?hoogle=%28%5E.%29&scope=set%3Ast...
I use lenses frequently in a large application and have only ever used view, set, and over.
- bmacho 4y ago> Haskell doesn’t have operators in the classic sense, since they’re just an alternate syntax (infix) for regular functions Actually in Haskell there is a concept of 'functions' and 'operators'. The former are made up symbols, while the latter are made up mostly alphanumeric characters. Also they parse differently.