mirror of
https://github.com/github/semantic.git
synced 2024-12-21 22:01:46 +03:00
clean up some leftovers
This commit is contained in:
parent
f19dabc20b
commit
7042dad34a
@ -247,20 +247,10 @@ evaluatePackageWith analyzeModule analyzeTerm package
|
||||
. withPrelude (packagePrelude (packageBody package))
|
||||
$ traverse (uncurry evaluateEntryPoint) (ModuleTable.toPairs (packageEntryPoints (packageBody package)))
|
||||
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
|
||||
= pairValueWithEnv
|
||||
. runInModule (moduleInfo m)
|
||||
. analyzeModule (subtermRef . moduleBody)
|
||||
-- . fmap (\x -> let () = x in undefined)
|
||||
$ evalTerm <$> m
|
||||
evalTerm term = Subterm term
|
||||
(value =<< foldSubterms (analyzeTerm eval) term)
|
||||
|
Loading…
Reference in New Issue
Block a user