mirror of
https://github.com/github/semantic.git
synced 2025-01-03 13:02:37 +03:00
Define a metavariable type.
This commit is contained in:
parent
825990cfce
commit
4c2ce050de
@ -20,6 +20,9 @@ import Text.Show
|
||||
-- | An annotated series of patches of terms.
|
||||
newtype Diff syntax ann = Diff { unDiff :: DiffF syntax ann (Diff syntax ann) }
|
||||
|
||||
newtype MetaVar = MetaVar { unMetaVar :: String }
|
||||
deriving (Eq, Ord, Show)
|
||||
|
||||
data DiffF syntax ann recur
|
||||
= Copy (Both ann) (syntax recur)
|
||||
| Patch (Patch (Term syntax ann))
|
||||
|
Loading…
Reference in New Issue
Block a user