1
1
mirror of https://github.com/github/semantic.git synced 2024-12-19 21:01:35 +03:00

otiose 'do'

This commit is contained in:
Patrick Thomson 2018-05-25 12:35:16 -04:00
parent 3e02366d14
commit bec56ece82

View File

@ -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))