mirror of
https://github.com/github/semantic.git
synced 2024-12-22 22:31:36 +03:00
Add a smart constructor for Recursive operations.
This commit is contained in:
parent
9a14248c08
commit
f6c8cd81da
@ -19,3 +19,6 @@ data AlgorithmF
|
||||
|
||||
-- | A lazily-produced AST for diffing.
|
||||
type Algorithm a annotation = Free (AlgorithmF a annotation)
|
||||
|
||||
recursively :: Term leaf annotation -> Term leaf annotation -> Algorithm leaf annotation (Diff leaf annotation)
|
||||
recursively a b = wrap (Recursive a b pure)
|
||||
|
Loading…
Reference in New Issue
Block a user