[Haskell-cafe] sections for record settors

Bulat Ziganshin bulat.ziganshin at gmail.com
Wed Sep 20 04:21:35 EDT 2006


Hello Tim,

Wednesday, September 20, 2006, 1:28:47 AM, you wrote:

>      rec {field=val}

> but there is no settor function.  It would be nice if there was some
> sort of section-like syntax to access the settor function, like:

you can use DriFT which generates setter, isA and many other functions
(or you can use Template Haskell to implement it yourself and share
your implementation with us :)

http://repetae.net/john/computer/haskell/DrIFT/drop/DrIFT-2.1.1.tar.gz
http://repetae.net/john/computer/haskell/DrIFT/drift.ps

-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Haskell-Cafe mailing list