1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 10:15:55 +03:00

Generalize runValueError.

This commit is contained in:
Rob Rix 2018-05-28 11:58:12 -04:00
parent 301f84a7cf
commit b0ef2ddd66

View File

@ -260,7 +260,7 @@ instance Show location => Show1 (ValueError location body) where
throwValueError :: Member (Resumable (ValueError location body)) effects => ValueError location body resume -> Evaluator location (Value location body) effects resume
throwValueError = throwResumable
runValueError :: TermEvaluator term location (Value location body) (Resumable (ValueError location body) ': effects) a -> TermEvaluator term location (Value location body) effects (Either (SomeExc (ValueError location body)) a)
runValueError :: Effectful (m location (Value location body)) => m location (Value location body) (Resumable (ValueError location body) ': effects) a -> m location (Value location body) effects (Either (SomeExc (ValueError location body)) a)
runValueError = runResumable
runValueErrorWith :: Effectful (m location (Value location body)) => (forall resume . ValueError location body resume -> m location (Value location body) effects resume) -> m location (Value location body) (Resumable (ValueError location body) ': effects) a -> m location (Value location body) effects a