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

add type annotation to help me understand this code

This commit is contained in:
Charlie Somerville 2018-05-15 11:22:57 -07:00
parent d9b2c8ed80
commit 68f73dfdb0

View File

@ -234,7 +234,17 @@ evaluatePackageWith analyzeModule analyzeTerm package
. runModules evalModule
. withPrelude (packagePrelude (packageBody package))
$ traverse (uncurry evaluateEntryPoint) (ModuleTable.toPairs (packageEntryPoints (packageBody package)))
where evalModule m
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 (subtermValue . moduleBody)