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

clean up some leftovers

This commit is contained in:
Charlie Somerville 2018-05-15 16:01:24 -07:00
parent f19dabc20b
commit 7042dad34a

View File

@ -247,20 +247,10 @@ evaluatePackageWith analyzeModule analyzeTerm package
. withPrelude (packagePrelude (packageBody package)) . withPrelude (packagePrelude (packageBody package))
$ traverse (uncurry evaluateEntryPoint) (ModuleTable.toPairs (packageEntryPoints (packageBody package))) $ traverse (uncurry evaluateEntryPoint) (ModuleTable.toPairs (packageEntryPoints (packageBody package)))
where where
evalModule :: Module term
-> Evaluator
location
value
(Modules location value
: State
(Gotos location value (Reader Span : Reader PackageInfo : outer))
: Reader Span : Reader PackageInfo : outer)
(Environment location value, value)
evalModule m evalModule m
= pairValueWithEnv = pairValueWithEnv
. runInModule (moduleInfo m) . runInModule (moduleInfo m)
. analyzeModule (subtermRef . moduleBody) . analyzeModule (subtermRef . moduleBody)
-- . fmap (\x -> let () = x in undefined)
$ evalTerm <$> m $ evalTerm <$> m
evalTerm term = Subterm term evalTerm term = Subterm term
(value =<< foldSubterms (analyzeTerm eval) term) (value =<< foldSubterms (analyzeTerm eval) term)