mirror of
https://github.com/github/semantic.git
synced 2024-12-20 05:11:44 +03:00
Generalize resumingBadModuleResolutions.
This commit is contained in:
parent
c92ba91068
commit
3a2ba0b631
@ -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]))
|
||||
|
Loading…
Reference in New Issue
Block a user