A new notation for arrows
Ross Paterson · ACM SIGPLAN International Conference on Functional Programming (ICFP) · 2001
The categorical notion of monad, used by Moggi to structure denotational descriptions, has proved to be a powerful tool for structuring combinator libraries. Moreover, the monadic programming style provides a convenient syntax for many kinds of computation, so that each library defines a new sublanguage. Recently, several workers have proposed a generalization of monads, called variously "arrows" or Freyd-categories. The extra generality promises to increase the power, expressiveness and efficiency of the embedded approach, but does not mesh as well with the native abstraction and application. Definitions are typically given in a point-free style, which is useful for proving general properties, but can be awkward for programming specific instances. In this paper we define a simple extension to the functional language Haskell that makes these new notions of computation more convenient to use. Our language is similar to the monadic style, and has similar reasoning properties. Moreover, it is extensible, in the sense that new combining forms can be defined as expressions in the host language.
Cited by 210 works. doi:10.1145/507635.507664
Authors
References
- Lecture Notes in Computer Science 1205
- Sorting networks and their applications
- Parallel Prefix Computation
- The Semantics of a Simple Language for Parallel Programming.
- The next 700 programming languages
- The Esterel synchronous programming language: design, semantics, implementation
- Computational lambda-calculus and monads
- LUSTRE: A declarative language for programming synchronous systems*
- LUSTRE: a declarative language for real-time programming
- LUCID: The data flow programming language