Comprehensive comprehensions

  • Authors:
  • Simon Peyton Jones;Philip Wadler

  • Affiliations:
  • Microsoft Research, Cambridge, United Kingdom;University of Edinburgh, Edinburgh, United Kingdom

  • Venue:
  • Haskell '07 Proceedings of the ACM SIGPLAN workshop on Haskell workshop
  • Year:
  • 2007

Quantified Score

Hi-index 0.00

Visualization

Abstract

We propose an extension to list comprehensions that makes it easy to express the kind of queries one would write in SQL using ORDER BY, GROUP BY, and LIMIT. Our extension adds expressive power to comprehensions, and generalises the SQL constructs that inspired it. It is easy to implement, using simple desugaring rules.