[Template-haskell] Examples?

Magnus Therning magnus at therning.org
Sun Sep 21 04:32:19 EDT 2008


I've just started looking into TH to remove some of the tedious work
of writing access functions for a few datatypes.  However I've found
precious few examples of "getting into" datatypes.  Basically I want
to get to 'dInt' and 'dString' in the datatype below:

 data Data = Data { dInt :: Int, dString :: String }

/M

-- 
Magnus Therning                        (OpenPGP: 0xAB4DFBA4)
magnus@therning.org          Jabber: magnus@therning.org
http://therning.org/magnus         identi.ca|twitter: magthe


More information about the template-haskell mailing list