1
1
mirror of https://github.com/github/semantic.git synced 2024-11-25 02:58:36 +03:00

Move Term into Language.Python.

This commit is contained in:
Rob Rix 2019-09-25 12:04:13 -04:00
parent a0e723a22d
commit f33e678c7a
No known key found for this signature in database
GPG Key ID: F188A01508EA1CF7
2 changed files with 12 additions and 8 deletions

View File

@ -1,2 +1,12 @@
module Language.Python
() where
( Term(..)
) where
import qualified Language.Python.Tags as PyTags
import qualified Tags.Tagging.Precise as Tags
import qualified TreeSitter.Python.AST as Py
newtype Term a = Term { getTerm :: Py.Module a }
instance Tags.ToTags Term where
tags src = Tags.runTagging src . PyTags.tags . getTerm

View File

@ -1,6 +1,6 @@
{-# LANGUAGE AllowAmbiguousTypes, DataKinds, DisambiguateRecordFields, FlexibleContexts, FlexibleInstances, MultiParamTypeClasses, NamedFieldPuns, ScopedTypeVariables, TypeApplications, TypeFamilies, TypeOperators, UndecidableInstances #-}
module Language.Python.Tags
( Term(..)
( ToTags(..)
) where
import Control.Effect.Reader
@ -18,12 +18,6 @@ import Tags.Tag
import qualified Tags.Tagging.Precise as Tags
import qualified TreeSitter.Python.AST as Py
newtype Term a = Term { getTerm :: Py.Module a }
instance Tags.ToTags Term where
tags src = Tags.runTagging src . tags . getTerm
class ToTags t where
tags
:: ( Carrier sig m