8 Jun
2009
8 Jun
'09
11:50 p.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