Annotating Expressions

ajb at spamcop.net ajb at spamcop.net
Tue Dec 16 22:39:42 EST 2003


G'day all.

Quoting John Meacham <john at repetae.net>:

> Imagine I have a data structure like so:
>
> data E = EAp E E | ELam Int E | ELetRec [(Int,E)] E | EVar Int
>
> now, I want to annotate every occurence of E with some pass specific
> information, such as free variables or levels for lambda lifting.

        http://haskell.org/hawiki/DecoratingStructures
        http://haskell.org/hawiki/IndirectComposite

Cheers,
Andrew Bromage


More information about the Haskell mailing list