1
1
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:
joshvera 2018-03-21 12:14:04 -04:00
parent ffea66cdca
commit 2cdd9fa183

View File

@ -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