[Haskell-cafe] functional references and HList?
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
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?
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe