1
1
mirror of https://github.com/github/semantic.git synced 2025-01-04 21:47:07 +03:00

Derive an AcessControls instance for TypeScript.Term.

This commit is contained in:
Rob Rix 2019-10-18 16:57:52 -04:00
parent dbc12c4ee6
commit 293c2f77df
No known key found for this signature in database
GPG Key ID: F188A01508EA1CF7

View File

@ -23,10 +23,12 @@ import qualified Language.Ruby.Syntax as Ruby
import qualified Language.TSX.Syntax as TSX
import qualified Language.TSX.Term as TSX
import qualified Language.TypeScript.Syntax as TypeScript
import qualified Language.TypeScript.Term as TypeScript
import Data.Quieterm
deriving instance AccessControls1 syntax => AccessControls (Term syntax ann)
deriving instance AccessControls (TSX.Term ann)
deriving instance AccessControls (TypeScript.Term ann)
instance (AccessControls recur, AccessControls1 syntax) => AccessControls (TermF syntax ann recur) where
termToAccessControl = liftTermToAccessControl termToAccessControl . termFOut