Changelog for Diff-1.0.1
1.0
-
Add Unix diff style annotations to output of
prettyContextDiff, e.g@@ -1,5 +1,4 @@. This required three changes to the signature ofgetContextDiffdue to the addition of a wrapper typeNumbered, which enumerates the elements of the input list. -
Signature change 1: The element pretty printer type changes from
(a -> Doc)to(Numbered a -> Doc). An unnumber function is provided so that the old behavior can be obtained by changing that argument fromprettyto(pretty . unnumber) -
Signature change 2: The result type of getContextDiff changes from
ContextDiff atoContextDiff (Numbered a). A functionunNumberContextDiffis provided to convert the result back to the old type. -
Signature change 3: the context argument is now
Maybe Intrather thanInt, reflecting the change made togetContextDiffNewin 0.5. -
A
prettyContextDiffOldfunction is provided to get the old style output. -
The old broken version of getContextDiffOld is removed.
-
Document the behavior of
groupBy'.
0.5
- Bring space complexity down to D^2 (Bodigrim).
- Add
Bifunctorinstance (Jonathan King). Requiresbase>= 4.8. - Fix for the grouped context diff. It was omitting all trailing contexts.
- Allow unlimited number of context elements (
getContextDiffNew).
0.4
- Generalize
Diff atoPolyDiff a b.Diffhas been replaced with a specialized synonymtype Diff a = PolyDiff a a, but it's still not backward compatible if you importedDiff(..).