1
1
mirror of https://github.com/github/semantic.git synced 2024-11-27 12:57:49 +03:00

Whoops 2: the Whoopsening.

This commit is contained in:
Rob Rix 2019-10-25 15:26:30 -04:00
parent 72ba6821ea
commit c4e2c14601
No known key found for this signature in database
GPG Key ID: F188A01508EA1CF7

View File

@ -41,7 +41,7 @@ callGraphProject' :: ( Language.SLanguage lang
-> IO (Either String ())
callGraphProject' session proxy path
| let lang = Language.reflect proxy
, Just (SomeParser parser) <- parserForLanguage analysisParsers lang = bimap (first show) (const ()) . runTask session $ do
, Just (SomeParser parser) <- parserForLanguage analysisParsers lang = fmap (bimap show (const ())) . runTask session $ do
blob <- readBlobFromFile' (fileForTypedPath path)
package <- fmap snd <$> runParse (Duration.fromSeconds 10) (parsePackage parser (Project (Path.toString (Path.takeDirectory path)) [blob] lang []))
modules <- topologicalSort <$> runImportGraphToModules proxy package