AW: Boilerplate revisited

Markus.Schnell at infineon.com Markus.Schnell at infineon.com
Wed Nov 5 13:38:44 EST 2003


> > data Foo = Foo Int String
> 
> and you're looking for Ints and transforming them, it will 
> also recurse 
> into the strings and look at every character, because it 
> doesn't know that 

Hm. That could be. I think the problem is that segment is
> data Segemnt = Comp [Segment] Attributes

and 'everywhere (mkT f) seg' would also jump into the attributes,
which is waisted effort.

-- Markus
 



More information about the Haskell mailing list