1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +03:00

Generalize runResolutionError.

This commit is contained in:
Rob Rix 2018-05-06 16:46:11 -04:00
parent 71d5eebbab
commit 26c2869d6e

View File

@ -99,7 +99,7 @@ instance Eq1 ResolutionError where
liftEq _ (GoImportError a) (GoImportError b) = a == b
liftEq _ _ _ = False
runResolutionError :: Evaluator location term value (Resumable ResolutionError ': effects) a -> Evaluator location term value effects (Either (SomeExc ResolutionError) a)
runResolutionError :: Effectful m => m (Resumable ResolutionError ': effects) a -> m effects (Either (SomeExc ResolutionError) a)
runResolutionError = raiseHandler runError
-- | An error thrown when loading a module from the list of provided modules. Indicates we weren't able to find a module with the given name.