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:
parent
8fcbaa3a7e
commit
41902045b4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user