mirror of
https://github.com/github/semantic.git
synced 2024-12-29 18:06:14 +03:00
Define an Interpreter instance for Tracing.
This commit is contained in:
parent
0adb878ccf
commit
db99f9efad
@ -34,3 +34,9 @@ instance ( Corecursive term
|
||||
liftAnalyze analyzeTerm recur term
|
||||
|
||||
analyzeModule = liftAnalyze analyzeModule
|
||||
|
||||
instance ( Interpreter effects (result, trace (Configuration location term value)) rest m
|
||||
, Monoid (trace (Configuration location term value))
|
||||
)
|
||||
=> Interpreter (Writer (trace (Configuration location term value)) ': effects) result rest (Tracing trace m) where
|
||||
interpret = interpret . raise @m . runWriter . lower
|
||||
|
Loading…
Reference in New Issue
Block a user