mirror of
https://github.com/github/semantic.git
synced 2024-12-29 01:42:43 +03:00
🔥 isolate.
This commit is contained in:
parent
0e6db98fa5
commit
728829afb0
@ -3,7 +3,6 @@ module Data.Abstract.Evaluatable
|
||||
( module X
|
||||
, Evaluatable(..)
|
||||
, evaluatePackageWith
|
||||
, isolate
|
||||
, traceResolve
|
||||
-- | Effects
|
||||
, EvalError(..)
|
||||
@ -148,10 +147,6 @@ evaluatePackageWith analyzeModule analyzeTerm package
|
||||
pure (a, filtered)
|
||||
|
||||
|
||||
-- | Isolate the given action with an empty global environment and exports.
|
||||
isolate :: (Member (Env address) effects, Member (State (Exports address)) effects) => Evaluator address value effects a -> Evaluator address value effects a
|
||||
isolate = withEnv lowerBound . withExports lowerBound
|
||||
|
||||
traceResolve :: (Show a, Show b, Member Trace effects) => a -> b -> Evaluator address value effects ()
|
||||
traceResolve name path = trace ("resolved " <> show name <> " -> " <> show path)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user