1
1
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:
Rob Rix 2017-05-11 09:40:46 -04:00
parent e543a192ef
commit 054876fa7f

View File

@ -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