I hadn't seen data-accessor before. Thanks for the pointer. - Conal
Conal Elliott wrote:I recently found out Henning and Luke's Data.Accessor[1], and your editor combinators and their accessors seem very much related. Was one inspired by the other?
If you think of f (here f=not) as an "semantic editor" (transformer) of values, then 'result', 'first', and 'second' are "semantic editor combinators", which can be composed together arbitrarily. See http://conal.net/blog/semantic-editor-combinators .
Martijn.
[1] http://hackage.haskell.org/cgi-bin/hackage-scripts/package/data-accessor