
9 Jun
2009
9 Jun
'09
3:50 a.m.
Henry, Ah, pressed send way to early. Of course, the definition should change a little as well: convert :: Data a => Int -> a convert i = x where x = fromConstr ( dataTypeConstrs (dataTypeOf x) !! (i - 1) ) Cheers, Stefan