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

Whitespace tweaks.

This commit is contained in:
Rob Rix 2018-03-26 09:52:37 -04:00
parent b14db1821f
commit 781399de4b

View File

@ -143,7 +143,7 @@ evaluatesWith :: forall value term effects
-> [Module term] -- ^ List of (blob, term) pairs that make up the program to be evaluated -> [Module term] -- ^ List of (blob, term) pairs that make up the program to be evaluated
-> Module term -- ^ Entrypoint -> Module term -- ^ Entrypoint
-> Final effects value -> Final effects value
evaluatesWith prelude modules m = runAnalysis @(Evaluating term value) $ do evaluatesWith prelude modules m = runAnalysis @(Evaluating term value) $ do
preludeEnv <- evaluateModule prelude *> getEnv preludeEnv <- evaluateModule prelude *> getEnv
withDefaultEnvironment preludeEnv (withModules modules (evaluateModule m)) withDefaultEnvironment preludeEnv (withModules modules (evaluateModule m))
@ -165,6 +165,7 @@ evaluateFilesWithPrelude parser paths = do
entry:xs <- traverse (parseFile parser Nothing) paths entry:xs <- traverse (parseFile parser Nothing) paths
pure $ evaluatesWith @Value prelude xs entry pure $ evaluatesWith @Value prelude xs entry
-- Read and parse a file. -- Read and parse a file.
parseFile :: Parser term -> Maybe FilePath -> FilePath -> IO (Module term) parseFile :: Parser term -> Maybe FilePath -> FilePath -> IO (Module term)
parseFile parser rootDir path = runTask $ do parseFile parser rootDir path = runTask $ do