[Haskell-cafe] Re: A generics question
Henry Laxen
nadine.and.henry at pobox.com
Tue Jun 9 08:25:22 EDT 2009
Sterling Clover <s.clover <at> gmail.com> writes:
>
> Try it with the following type signature and it should work fine:
>
> convert :: (Data a) => Int -> a -> a
>
> Of course, as has been noted, SYB is a rather big sledgehammer for
> the insect in question.
>
> Cheers,
> S.
>
Thank you Sterling. That is the answer I was looking for. I was trying out
things from the various Scrap your Boilerplate papers, and got stuck doing
something that I thought should be easy. Now it makes sense. Thanks again.
Best wishes,
Henry Laxen
More information about the Haskell-Cafe
mailing list