Type-safe diff for families of datatypes
Eelco Lempsink, Sean Leather, Andres Löh

We present patch and diff functions that are generic over families of datatypes. The edit scripts are represented as values in a type-indexed datatype, and both computing and applying edit scripts is entirely type-safe. Our approach extends classic string diff and tree diff algorithms by providing more informative types. We have working implementations in Agda and Haskell.

Download
Paper, presented at WGP 2009

Valid XHTML 1.0! Valid CSS!

Andres Löh, 2009-12-18