mirror of
https://github.com/github/semantic.git
synced 2025-01-03 04:51:57 +03:00
Add MonadResume instance for effects
This commit is contained in:
parent
ffea66cdca
commit
2cdd9fa183
@ -111,6 +111,9 @@ instance RunEffect (ResumeExc exc v) a where
|
||||
type Result (ResumeExc exc v) a = Either exc a
|
||||
runEffect = runError
|
||||
|
||||
instance Members '[ResumeExc Prelude.String value] effects => MonadResume Prelude.String value (Evaluating term value effects) where
|
||||
throwException = raise . throwError
|
||||
|
||||
instance Members '[Fail, State (IntMap.IntMap term)] effects => MonadControl term (Evaluating term value effects) where
|
||||
label term = do
|
||||
m <- raise get
|
||||
|
Loading…
Reference in New Issue
Block a user