
27 Dec
2014
27 Dec
'14
3:58 a.m.
On Fri, Dec 26, 2014 at 5:39 PM, Roman Cheplyaka
On 26/12/14 20:18, Michael Orlitzky wrote:
I could just do,
from_tuple = uncurryN MLBBoxScoreGameBreakdownTeamXml to_tuple = toTupleGeneric
because things get real ugly when there are ~20 fields in the data type.
Should be easy to do with the generics-sop package.
Roman
http://lpaste.net/117317 works using the older Data.Data.Data, but it's dissatisfying because if you get the result type wrong (too few or too many elements), you'll always get a Nothing. Maybe generics-sop is better in that respect. Regards, Adam