[Haskell-cafe] functional update
Henning Thielemann
lemming at henning-thielemann.de
Tue Apr 22 08:26:17 EDT 2008
On Mon, 21 Apr 2008, Ryan Ingram wrote:
> I recommend this blog entry:
> http://twan.home.fmf.nl/blog/haskell/overloading-functional-references.details
>
> along with a few additional combinators for imperative update:
>
> data FRef s a = FRef
> { frGet :: s -> a
> , frSet :: a -> s -> s
> }
http://darcs.haskell.org/record-access/src/Data/Accessor.hs
http://darcs.haskell.org/record-access/src/Data/Accessor/Example.hs
I should upload this to Hackage, I know ...
More information about the Haskell-Cafe
mailing list