mirror of
https://github.com/github/semantic.git
synced 2024-12-19 21:01:35 +03:00
otiose 'do'
This commit is contained in:
parent
3e02366d14
commit
bec56ece82
@ -194,7 +194,7 @@ defaultTimeout = Milliseconds 5000
|
||||
runParser :: Members '[Reader Options, Telemetry, Exc SomeException, IO, Trace] effs => Blob -> Parser term -> Eff effs term
|
||||
runParser blob@Blob{..} parser = case parser of
|
||||
ASTParser language ->
|
||||
time "parse.tree_sitter_ast_parse" languageTag $ do
|
||||
time "parse.tree_sitter_ast_parse" languageTag $
|
||||
parseToAST defaultTimeout language blob
|
||||
>>= maybeM (throwError (SomeException ParserTimedOut))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user