gfindtype type

Stefan Holdermans sholderm at students.cs.uu.nl
Thu Jan 27 02:26:48 EST 2005


Jim,

>> Why is
>>
>> gfindtype :: (Data x, Data y) => x -> Maybe y
>>
>> and not
>>
>> gfindtype :: (Data x, Typeable y) => x -> Maybe y
>>
>> ?
>
> Because you're not always interested in a subterm of the same type as 
> the parent node.

Ouch, answered your question before I really read it, i.e., before a 
first cup of coffee.

Sorry.

Regards,

Stefan



More information about the Glasgow-haskell-users mailing list