mirror of
https://github.com/github/semantic.git
synced 2025-01-06 06:46:07 +03:00
Derive a Declarations instance for TSX.Term.
This commit is contained in:
parent
bb2a325f4a
commit
cbb366235d
@ -5,6 +5,7 @@ module Language.TSX.Term
|
|||||||
, Diff(..)
|
, Diff(..)
|
||||||
) where
|
) where
|
||||||
|
|
||||||
|
import Data.Abstract.Declarations
|
||||||
import Data.Bifoldable
|
import Data.Bifoldable
|
||||||
import Data.Bifunctor
|
import Data.Bifunctor
|
||||||
import Data.Sum (Sum)
|
import Data.Sum (Sum)
|
||||||
@ -192,7 +193,7 @@ type Syntax =
|
|||||||
|
|
||||||
|
|
||||||
newtype Term ann = Term { getTerm :: Term.Term (Sum Syntax) ann }
|
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 }
|
newtype Diff ann1 ann2 = Diff { getDiff :: Diff.Diff (Sum Syntax) ann1 ann2 }
|
||||||
deriving (Bifoldable, Bifunctor)
|
deriving (Bifoldable, Bifunctor)
|
||||||
|
Loading…
Reference in New Issue
Block a user