
Hi Stephen, I'm glad I asked. This sure sounds more interesting than I had anticipated. Is this an old hat for your off-the-shelf haskeller or something only found in the more seasoned haskellers tool box? I think it's pretty much the first time I encounter it. Günther Am 19.06.10 17:01, schrieb Stephen Tetley:
Hi Günther
The code in the two serialize modules looks very close to Konstantin Laufer's functional variation of the visitor pattern:
http://webpages.math.luc.edu/~laufer/papers/mixins03.pdf
This open recursion style - is used to get "inheritance" / extensibility - there is a more recent paper by Bruno Oliveira, Tom Schrijvers and William Cook here:
http://tomschrijvers.blogspot.com/2009/09/effectiveadvice-aop-mixin-inherita...
Best wishes
Stephen