The Arrow Calculus

The arrow calculus by Sam Lindley, Philip Wadler, & Jeremy Yalloop

We introduce the arrow calculus, a metalanguage for manipulating Hughes's arrows with close relations both to Moggi's metalanguage for monads and to Paterson's arrow notation. Arrows are classically defined by extending lambda calculus with three constructs satisfying nine (somewhat idiosyncratic) laws; in contrast, the arrow calculus adds four constructs satisfying five laws (which fit two well-known patterns). The five laws were previously known to be sound; we show that they are also complete, and hence that the five laws may replace the nine.

I stumbled across this paper while trying to dig a little deeper into Haskell type classes and noticed that no one had mentioned it before. I'm still a novice with the lambda calculus and denotational semantics, but I can appreciate the simplification the paper achieves. It could make correctly implementing the arrow class more intuitive, but do theoretical reductions like this tend to help the compiler do a better job too?

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Discussed very briefly...

Previously on LtU...

Oh, sorry

Sorry about that, the search bar didn't return anything for me. Thanks for pointing it out though.