mirror of
https://github.com/github/semantic.git
synced 2025-01-06 23:46:21 +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
|
type Result (ResumeExc exc v) a = Either exc a
|
||||||
runEffect = runError
|
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
|
instance Members '[Fail, State (IntMap.IntMap term)] effects => MonadControl term (Evaluating term value effects) where
|
||||||
label term = do
|
label term = do
|
||||||
m <- raise get
|
m <- raise get
|
||||||
|
Loading…
Reference in New Issue
Block a user