mirror of
https://github.com/github/semantic.git
synced 2024-12-20 21:31:48 +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 Data.Abstract.Evaluatable
|
||||||
import Prologue
|
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
|
resumingBadModuleResolutions = raiseHandler (relay pure (\ (Resumable err) yield -> traceM ("ResolutionError:" <> show err) *> case err of
|
||||||
NotFoundError nameToResolve _ _ -> yield nameToResolve
|
NotFoundError nameToResolve _ _ -> yield nameToResolve
|
||||||
GoImportError pathToResolve -> yield [pathToResolve]))
|
GoImportError pathToResolve -> yield [pathToResolve]))
|
||||||
|
Loading…
Reference in New Issue
Block a user