3 ms·
On the other hand, the lens library in haskell is extremely abstract. Libraries obviously have different tradeoffs but using lens can increase the onboarding co
by Tarean 8y ago
On the other hand, the lens library in haskell is extremely abstract. Libraries obviously have different tradeoffs but using lens can increase the onboarding cost significantly for new team members.
I am mentioning lens because it has a both function:
incBoth = both += 1
Which has a fun type signature:
incBoth :: (Bitraversal p, MonadState (p a a) m, Num a) => m ()
- tome 8y agoHmm, don't you use it as a monadic action like do ... both += 1