1
1
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:
Rob Rix 2017-09-09 15:52:33 +01:00
parent 825990cfce
commit 4c2ce050de

View File

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