mirror of
https://github.com/github/semantic.git
synced 2024-12-23 06:41:45 +03:00
Simplify the ModuleInfo carrier.
This commit is contained in:
parent
727cbbbf94
commit
8769f7ab20
@ -95,7 +95,8 @@ type ModuleC term address value m
|
|||||||
( StateC (ScopeGraph address) (Evaluator term address value
|
( StateC (ScopeGraph address) (Evaluator term address value
|
||||||
( DerefC address value (Eff
|
( DerefC address value (Eff
|
||||||
( AllocatorC address (Eff
|
( AllocatorC address (Eff
|
||||||
( ReaderC ModuleInfo (Evaluator term address value m)))))))))))))))))))
|
( ReaderC ModuleInfo (Eff
|
||||||
|
m)))))))))))))))))))
|
||||||
|
|
||||||
type ValueC term address value m
|
type ValueC term address value m
|
||||||
= FunctionC term address value (Evaluator term address value
|
= FunctionC term address value (Evaluator term address value
|
||||||
@ -104,7 +105,7 @@ type ValueC term address value m
|
|||||||
|
|
||||||
evaluate :: ( AbstractValue term address value valueC
|
evaluate :: ( AbstractValue term address value valueC
|
||||||
, Carrier sig c
|
, Carrier sig c
|
||||||
, allocatorC ~ AllocatorC address (Eff (ReaderC ModuleInfo (Evaluator term address value c)))
|
, allocatorC ~ AllocatorC address (Eff (ReaderC ModuleInfo (Eff c)))
|
||||||
, Carrier (Allocator address :+: Reader ModuleInfo :+: sig) allocatorC
|
, Carrier (Allocator address :+: Reader ModuleInfo :+: sig) allocatorC
|
||||||
, Carrier (Deref value :+: Allocator address :+: Reader ModuleInfo :+: sig) (DerefC address value (Eff allocatorC))
|
, Carrier (Deref value :+: Allocator address :+: Reader ModuleInfo :+: sig) (DerefC address value (Eff allocatorC))
|
||||||
, booleanC ~ BooleanC (Evaluator term address value moduleC)
|
, booleanC ~ BooleanC (Evaluator term address value moduleC)
|
||||||
@ -163,7 +164,7 @@ evaluate lang analyzeModule analyzeTerm modules = do
|
|||||||
runValue = runBoolean . runWhile . runFunction evalTerm
|
runValue = runBoolean . runWhile . runFunction evalTerm
|
||||||
|
|
||||||
runInModule preludeBinds info
|
runInModule preludeBinds info
|
||||||
= runReader info . runEvaluator
|
= Evaluator . runReader info . runEvaluator
|
||||||
. runAllocator
|
. runAllocator
|
||||||
. runDeref
|
. runDeref
|
||||||
. runScopeEnv
|
. runScopeEnv
|
||||||
|
Loading…
Reference in New Issue
Block a user