1
1
mirror of https://github.com/github/semantic.git synced 2025-01-05 22:28:10 +03:00

a Ruby program will now be parameterized by an Err

This commit is contained in:
Ayman Nadeem 2020-04-28 13:46:58 -04:00
parent 49ba306fe7
commit 6e1a6bfb68

View File

@ -6,6 +6,7 @@ module Language.Ruby
, Language.Ruby.Grammar.tree_sitter_ruby
) where
import qualified AST.Parse as Parse
import qualified AST.Unmarshal as TS
import Control.Carrier.State.Strict
import Data.Proxy
@ -15,7 +16,7 @@ import qualified Language.Ruby.Grammar (tree_sitter_ruby)
import qualified Language.Ruby.Tags as RbTags
import qualified Tags.Tagging.Precise as Tags
newtype Term a = Term { getTerm :: Rb.Program a }
newtype Term a = Term { getTerm :: Rb.Program Parse.Err a }
instance TS.SymbolMatching Term where
matchedSymbols _ = TS.matchedSymbols (Proxy :: Proxy Rb.Program)