You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm thinking that a much better solution is to create an optic modifier, something that takes lens-like over IO-like and produces LensLike Concurrently.
I'm not a heavy lens user so I have no strong feelings on this, but I'd rather not take a dependency on lens. Can this be added in a separate async-lens package?
so mapConcurrentlyOf (which I'd call traverseConcurrentlyOf) and forConcurrentlyOf should be no problem. Traversed is a newtype defined in lens, and is frankly a bit of a mess, so I don't think the other two can be supported so easily.
Activity
Icelandjack commentedon Jan 4, 2018
I'm thinking that a much better solution is to create an optic modifier, something that takes lens-like over
IO-like and producesLensLike Concurrently.That way you can write
simonmar commentedon Jan 8, 2018
I'm not a heavy lens user so I have no strong feelings on this, but I'd rather not take a dependency on lens. Can this be added in a separate async-lens package?
treeowl commentedon Mar 15, 2023
@simonmar,
lensdefinesso
mapConcurrentlyOf(which I'd calltraverseConcurrentlyOf) andforConcurrentlyOfshould be no problem.Traversedis a newtype defined inlens, and is frankly a bit of a mess, so I don't think the other two can be supported so easily.simonmar commentedon Jun 8, 2023
I'd rather not make
asyncdepend onlens. Could these be put into a separate packageasync-lens, say in a moduleControl.Concurrent.Async.Lens?