[Haskell-cafe] functional references and HList?

Edward Kmett ekmett at gmail.com
Wed Feb 3 10:13:41 EST 2010

I see them as addressing separate issues.

They overlap in that they both address the notion of how to access
attributes in some sense, but really they are complementary techniques.

HList as used by OOHaskell provides you with a mechanism by which you can
define extensible records and structural subtyping.

Functional references let you both read and write 'attributes' in a
structure. These can be chained to access members of members.

These techniques can be used together to get extensible records that have
settable fields in the form of functional references, where these references
can be chained together.

HList/OOHaskell doesn't concern itself with the 'deep reference' problem,
and functional references do not concern themselves directly with extensible

-Edward Kmett

2010/2/2 Günther Schmidt <gue.schmidt at web.de>

> Hi all,
> I wonder if there is some a "field of use" overlap between HList and
> functional references aka accessors.
> Do both tackle the same problem?
> Günther
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20100203/23462a1a/attachment.html

More information about the Haskell-Cafe mailing list