mirror of
https://github.com/github/semantic.git
synced 2024-12-22 14:21:31 +03:00
add type annotation to help me understand this code
This commit is contained in:
parent
d9b2c8ed80
commit
68f73dfdb0
@ -234,7 +234,17 @@ evaluatePackageWith analyzeModule analyzeTerm package
|
|||||||
. runModules evalModule
|
. runModules evalModule
|
||||||
. 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 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
|
= pairValueWithEnv
|
||||||
. runInModule (moduleInfo m)
|
. runInModule (moduleInfo m)
|
||||||
. analyzeModule (subtermValue . moduleBody)
|
. analyzeModule (subtermValue . moduleBody)
|
||||||
|
Loading…
Reference in New Issue
Block a user