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

Don’t attempt to parse Haskell sources.

This commit is contained in:
Rob Rix 2015-12-16 15:35:57 -05:00
parent db93c7813c
commit 36e7e49f72

View File

@ -1,7 +1,6 @@
module Parser where
import Diff
import Haskell
import Range
import Syntax
import Term
@ -11,7 +10,6 @@ import Control.Comonad.Cofree
type Parser = String -> IO (Term String Info)
parserForType :: String -> Parser
parserForType ".hs" = runHaskellParser
parserForType mediaType = maybe lineByLineParser parseTreeSitterFile $ languageForType mediaType
lineByLineParser :: Parser