diff --git a/src/Unified.hs b/src/Unified.hs index 4fdf5d9a8..b749a9e9f 100644 --- a/src/Unified.hs +++ b/src/Unified.hs @@ -16,3 +16,6 @@ unified diff before after = f (Annotated annotations (Keyed k)) = "" unifiedPatch :: Patch (Term a annotation) -> String unifiedPatch _ = "" + +substring :: Range -> String -> String +substring range = take (end range) . drop (start range)