mirror of
https://github.com/github/semantic.git
synced 2024-12-22 14:21:31 +03:00
Use the SyntaxDiff/SyntaxTerm type synonyms.
This commit is contained in:
parent
ef76256755
commit
845ae84d9e
@ -110,8 +110,8 @@ runAlgorithm recur = iterAp $ \ r cont -> case r of
|
|||||||
|
|
||||||
-- | Decompose a step of an algorithm into the next steps to perform.
|
-- | Decompose a step of an algorithm into the next steps to perform.
|
||||||
decompose :: (Eq leaf, HasField fields Category, HasField fields (Maybe FeatureVector))
|
decompose :: (Eq leaf, HasField fields Category, HasField fields (Maybe FeatureVector))
|
||||||
=> AlgorithmF (Term (Syntax leaf) (Record fields)) (Diff (Syntax leaf) (Record fields)) result -- ^ The step in an algorithm to decompose into its next steps.
|
=> AlgorithmF (SyntaxTerm leaf fields) (SyntaxDiff leaf fields) result -- ^ The step in an algorithm to decompose into its next steps.
|
||||||
-> Algorithm (Term (Syntax leaf) (Record fields)) (Diff (Syntax leaf) (Record fields)) result -- ^ The sequence of next steps to undertake to continue the algorithm.
|
-> Algorithm (SyntaxTerm leaf fields) (SyntaxDiff leaf fields) result -- ^ The sequence of next steps to undertake to continue the algorithm.
|
||||||
decompose = \case
|
decompose = \case
|
||||||
Diff t1 t2 -> algorithmWithTerms t1 t2
|
Diff t1 t2 -> algorithmWithTerms t1 t2
|
||||||
Linear t1 t2 -> case galignWith diffThese (unwrap t1) (unwrap t2) of
|
Linear t1 t2 -> case galignWith diffThese (unwrap t1) (unwrap t2) of
|
||||||
|
Loading…
Reference in New Issue
Block a user