Skip to main content

Aspect-Oriented Programming with Type Classes

Sulzmann, Martin, Wang, Meng (2007) Aspect-Oriented Programming with Type Classes. In: Proceedings of the 6th workshop on Foundations of aspect-oriented languages. . pp. 65-74. ISBN 978-1-59593-671-4.

PDF - Author's Accepted Manuscript
Download (204kB) Preview
Official URL


We study aspect-oriented programming (AOP) in the context of the strongly typed language Haskell. We show how to support AOP via a straightforward type class encoding. Our main result is that typedirected static weaving of AOP programs can be directly expressed in terms of type class resolution – the process of typing and translating type class programs. We provide two implementation schemes. One scheme is based on type classes as available in the Glasgow Haskell Compiler. The other, more expressive scheme, relies on an experimental type class system. Our results shed new light on AOP in the context of languages with rich type systems.

Item Type: Conference or workshop item (Paper)
Uncontrolled keywords: Aspect-Oriented, Type Classes, Functional Programming
Subjects: Q Science > QA Mathematics (inc Computing science) > QA 75 Electronic computers. Computer science
Q Science > QA Mathematics (inc Computing science) > QA 76 Software, computer programming,
Divisions: Faculties > Sciences > School of Computing > Programming Languages and Systems Group
Depositing User: Meng Wang
Date Deposited: 28 Feb 2015 16:06 UTC
Last Modified: 29 May 2019 14:17 UTC
Resource URI: (The current URI for this page, for reference purposes)
  • Depositors only (login required):


Downloads per month over past year