mirror of
https://github.com/github/semantic.git
synced 2024-12-27 00:44:57 +03:00
Define an Interpreter instance for Erroring.
This commit is contained in:
parent
7a86d74d10
commit
b032d91900
@ -54,6 +54,10 @@ instance MonadAnalysis location term value effects m
|
||||
analyzeTerm = liftAnalyze analyzeTerm
|
||||
analyzeModule = liftAnalyze analyzeModule
|
||||
|
||||
instance Interpreter effects (Either (SomeExc exc) result) rest m
|
||||
=> Interpreter (Resumable exc ': effects) result rest (Erroring exc m) where
|
||||
interpret = interpret . raise @m . runError . lower
|
||||
|
||||
-- type TestEvaluating term = Evaluating Precise term (Value Precise)
|
||||
type JustEvaluating term
|
||||
= Erroring (AddressError (Located Precise term) (Value (Located Precise term)))
|
||||
|
Loading…
Reference in New Issue
Block a user