Aspect-oriented programming with type classes

Meng Wang, Martin Sulzmann

Research output: Chapter in Book/Report/Conference proceedingConference Contribution (Conference Proceeding)

4 Citations (Scopus)
6 Downloads (Pure)

Abstract

We consider the problem of adding aspects to a strongly typed language which supports type classes. We show that type classes as supported by the Glasgow Haskell Compiler can model an AOP style of programming via a simple syntax-directed transformation scheme where AOP programming idioms are mapped to type classes. The drawback of this approach is that we cannot easily advise functions in programs which carry type annotations. We sketch a more principled approach which is free of such problems by combining ideas from intentional type analysis with advanced overloading resolution strategies. Our results show that type-directed static weaving is closely related to type class resolution -- the process of typing and translating type class programs.

Original languageEnglish
Title of host publicationFOAL '07 Proceedings of the 6th workshop on Foundations of aspect-oriented languages
PublisherAssociation for Computing Machinery (ACM)
Pages65-74
DOIs
Publication statusPublished - 2007

Keywords

  • type class resolution
  • type-directed weaving

Fingerprint

Dive into the research topics of 'Aspect-oriented programming with type classes'. Together they form a unique fingerprint.

Cite this