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:
parent
72ba6821ea
commit
c4e2c14601
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user