1
1
mirror of https://github.com/github/semantic.git synced 2024-12-01 00:33:59 +03:00

Define an afterTerm function over diffs.

This commit is contained in:
Rob Rix 2016-06-27 12:50:25 -04:00
parent 8fcbaa3a7e
commit 41902045b4

View File

@ -42,3 +42,6 @@ mergeMaybe transform = cata algebra . fmap transform
beforeTerm :: Diff leaf annotation -> Maybe (Term leaf annotation)
beforeTerm = mergeMaybe before
afterTerm :: Diff leaf annotation -> Maybe (Term leaf annotation)
afterTerm = mergeMaybe after