AST equality test that ignores NodeInfo

Gregory Crosswhite gcross at
Thu Feb 26 16:12:29 EST 2009

Happily, there is indeed:  just use "geq" in Data.Generics.Twins.


On Feb 26, 2009, at 12:10 PM, Bueno, Denis wrote:

> On 02/26/2009 10:08 , "Gregory Crosswhite" <gcross at>  
> wrote:
>> If you're not familiar with the "Scrap-Your-Boilerplate" style, what
>> this code basically does is create a transformer which has specific
>> behaviours for the two explicitly given types and acts as the  
>> identity
>> on all other types, and the "everywhere" function goes through the
>> data structure and applies the transformer to all of the terms/
>> subterms in the AST.
> Sweet.  This is great.  But how do I compare the resulting ASTs?   
> Language-c
> does not provide an Eq instance for its data types.  Is there some  
> way to do
> with via the SYB approach?
>                              Denis
> _______________________________________________
> Language-c mailing list
> Language-c at

More information about the Language-c mailing list