mirror of
https://github.com/github/semantic.git
synced 2024-12-22 14:21:31 +03:00
📝 reinterpret.
This commit is contained in:
parent
f5009daa82
commit
7b24f196b7
@ -52,6 +52,7 @@ ignoreTelemetry = interpret (\ t -> case t of
|
|||||||
WriteLog{} -> pure ())
|
WriteLog{} -> pure ())
|
||||||
|
|
||||||
|
|
||||||
|
-- | Interpret an effect by replacing it with another effect.
|
||||||
reinterpret :: (forall x. effect x -> Eff (newEffect ': effs) x)
|
reinterpret :: (forall x. effect x -> Eff (newEffect ': effs) x)
|
||||||
-> Eff (effect ': effs) a
|
-> Eff (effect ': effs) a
|
||||||
-> Eff (newEffect ': effs) a
|
-> Eff (newEffect ': effs) a
|
||||||
|
Loading…
Reference in New Issue
Block a user