mirror of
https://github.com/github/semantic.git
synced 2024-12-30 18:36:27 +03:00
Pointful definition of diffTerms.
This commit is contained in:
parent
e543a192ef
commit
054876fa7f
@ -21,7 +21,7 @@ diffTerms :: (Eq leaf, HasField fields Category, HasField fields (Maybe FeatureV
|
|||||||
=> SyntaxTerm leaf fields -- ^ A term representing the old state.
|
=> SyntaxTerm leaf fields -- ^ A term representing the old state.
|
||||||
-> SyntaxTerm leaf fields -- ^ A term representing the new state.
|
-> SyntaxTerm leaf fields -- ^ A term representing the new state.
|
||||||
-> SyntaxDiff leaf fields
|
-> SyntaxDiff leaf fields
|
||||||
diffTerms = (runAlgorithm (decomposeWith algorithmWithTerms) .) . diff
|
diffTerms a b = runAlgorithm (decomposeWith algorithmWithTerms) (diff a b)
|
||||||
|
|
||||||
-- | Run an Algorithm to completion by repeated application of a stepping operation and return its result.
|
-- | Run an Algorithm to completion by repeated application of a stepping operation and return its result.
|
||||||
runAlgorithm :: forall f result
|
runAlgorithm :: forall f result
|
||||||
|
Loading…
Reference in New Issue
Block a user