[Haskell-cafe] sections for record settors

Einar Karttunen ekarttun at cs.helsinki.fi
Wed Sep 20 02:21:05 EDT 2006


On 20.09 01:05, Misha Aizatulin wrote:
> > It would be nice if there was some
> > sort of section-like syntax to access the settor function
> 
>   Indeed - I'd like it as well. Also these threads seem to deal with
> similar questions:
> http://www.haskell.org/pipermail/haskell/2005-February/015354.html
> http://www.haskell.org/pipermail/haskell-cafe/2005-January/008875.html
> http://www.haskell.org/pipermail/template-haskell/2005-February/000409.html
> 

Having a pure Haskell solution would be nice - but I think getting
better record types has more priority.

One can already simulate this with using DrIFT to derive setter/update
functions for the record members.

- Einar Karttunen


More information about the Haskell-Cafe mailing list