Fine Control of Demand in Haskell. Harrison, W., Sheard, T., & Hook, J. In 6th International Conference on the Mathematics of Program Construction (MPC02), Dagstuhl, Germany, volume 2386, of Lecture Notes in Computer Science, pages 68–93, 2002. Springer-Verlag.
Fine Control of Demand in Haskell [pdf]Paper  Fine Control of Demand in Haskell [pdf]Slides  abstract   bibtex   1 download  
Functional languages have the lambda calculus at their core, but then depart from this firm foundation by including features that alter their default evaluation order. The resulting mixed evaluation—partly lazy and partly strict—complicates the formal semantics of these languages. The functional language Haskell is such a language, with features such as pattern-matching, case expressions with guards, etc., introducing a modicum of strictness into the otherwise lazy language. But just how does Haskell differ from the lazy lambda calculus? We answer this question by introducing a calculational semantics for Haskell that exposes the interaction of its strict features with its default laziness. In the semantics, features perturbing Haskell's standard lazy evaluation order are specified computationally (i.e., monadically) rather than as pure values (i.e., functions, scalars, etc.).

Downloads: 1