mirror of
https://github.com/github/semantic.git
synced 2024-12-19 12:51:52 +03:00
Call withModules directly in Semantic.Util.
This commit is contained in:
parent
0f16b4e973
commit
864606af8a
@ -81,7 +81,7 @@ evaluateFiles :: forall term effects
|
||||
-> IO (Final effects Value)
|
||||
evaluateFiles parser paths = do
|
||||
entry:xs <- traverse (parseFile parser) paths
|
||||
pure $ evaluates @Value xs entry
|
||||
pure . runAnalysis @(Evaluating term Value) . withModules (fst entry) xs $ evaluateModule (snd entry)
|
||||
|
||||
-- Read and parse a file.
|
||||
parseFile :: Parser term -> FilePath -> IO (Blob, term)
|
||||
|
Loading…
Reference in New Issue
Block a user