Good modern shooters in action?

Recently, I read about arrows , a concept invented more than 10 years ago. This allows you to get more static information about the calculations compared to monads, while still having the power of calculations depending on the previous ones.

However, I could not find them in the latest modern libraries. For example, attoparsec does not even have an Arrow instance, although arrows were designed to speed parsing.

Are there any good examples of arrows used in currently developing libraries or executables that bring performance or other benefits?

(I understand that this is a kind of soft question - my goal is to better understand the concept and its advantages.)

+7
haskell arrows
source share
1 answer

Checkout this tutorial for opaleye . Arrows are widely used everywhere (in addition to profunitors). The library offers a way to write complex, typical Postgres queries. I don't have much experience using this, but it looks like it's a well-designed library, and it's probably a good choice if you use Postgres in the backend. Ben Colera has a good video introduction to the library here .

+1
source share

All Articles