1
1
mirror of https://github.com/github/semantic.git synced 2024-12-20 05:11:44 +03:00

Generalize resumingBadModuleResolutions.

This commit is contained in:
Rob Rix 2018-05-06 12:04:29 -04:00
parent c92ba91068
commit 3a2ba0b631

View File

@ -7,7 +7,7 @@ import Control.Abstract.Evaluator
import Data.Abstract.Evaluatable
import Prologue
resumingBadModuleResolutions :: Evaluator location term value (Resumable ResolutionError ': effects) a -> Evaluator location term value effects a
resumingBadModuleResolutions :: Effectful m => m (Resumable ResolutionError ': effects) a -> m effects a
resumingBadModuleResolutions = raiseHandler (relay pure (\ (Resumable err) yield -> traceM ("ResolutionError:" <> show err) *> case err of
NotFoundError nameToResolve _ _ -> yield nameToResolve
GoImportError pathToResolve -> yield [pathToResolve]))