1
1
mirror of https://github.com/github/semantic.git synced 2024-12-11 08:45:48 +03:00

Derive a Declarations instance for TSX.Term.

This commit is contained in:
Rob Rix 2019-10-18 16:34:56 -04:00
parent bb2a325f4a
commit cbb366235d
No known key found for this signature in database
GPG Key ID: F188A01508EA1CF7

View File

@ -5,6 +5,7 @@ module Language.TSX.Term
, Diff(..)
) where
import Data.Abstract.Declarations
import Data.Bifoldable
import Data.Bifunctor
import Data.Sum (Sum)
@ -192,7 +193,7 @@ type Syntax =
newtype Term ann = Term { getTerm :: Term.Term (Sum Syntax) ann }
deriving (Foldable, Functor, Syntax.HasErrors, Traversable)
deriving (Declarations, Foldable, Functor, Syntax.HasErrors, Traversable)
newtype Diff ann1 ann2 = Diff { getDiff :: Diff.Diff (Sum Syntax) ann1 ann2 }
deriving (Bifoldable, Bifunctor)