[Haskell-cafe] Wrapping all fields of a data type in e.g. Maybe

Michael Orlitzky michael at orlitzky.com
Mon Jul 22 03:22:30 CEST 2013


On 07/20/2013 04:49 PM, adam vogt wrote:
> 
> Hi Michael,
> 
> It's fairly straightforward to generate the new data with template
> haskell [1], and on the same page, section "10.7 'generic' zipWith" is
> likely to be similar to your merging code.
> 
> [1] <http://www.haskell.org/haskellwiki/Template_Haskell#Generating_records_which_are_variations_of_existing_records>
> 

I don't know any TH yet, but this looks like it just might work. Thanks
for the suggestion!






More information about the Haskell-Cafe mailing list