mirror of
https://github.com/github/semantic.git
synced 2024-12-22 06:11:49 +03:00
Define evaluateFiles using evaluateModules.
This commit is contained in:
parent
9bd466bc19
commit
ae7483291a
@ -81,9 +81,7 @@ evaluateFiles :: forall term effects
|
||||
=> Parser term
|
||||
-> [FilePath]
|
||||
-> IO (Final effects Value)
|
||||
evaluateFiles parser paths = do
|
||||
entry:xs <- parseFiles parser paths
|
||||
pure . runAnalysis @(Evaluating term Value) . withModules xs $ evaluateModule entry
|
||||
evaluateFiles parser paths = runAnalysis @(Evaluating term Value) . evaluateModules <$> parseFiles parser paths
|
||||
|
||||
|
||||
-- Read and parse a file.
|
||||
|
Loading…
Reference in New Issue
Block a user