mirror of
https://github.com/github/semantic.git
synced 2024-12-29 01:42:43 +03:00
Define resumingEnvironmentError using runResumableWith.
This commit is contained in:
parent
41b9fd65ca
commit
1277224795
@ -250,7 +250,7 @@ resumingValueError = runValueErrorWith (\ err -> trace ("ValueError: " <> pretty
|
||||
ArithmeticError{} -> pure hole)
|
||||
|
||||
resumingEnvironmentError :: Effects effects => Evaluator (Hole (Maybe Name) address) value (Resumable (EnvironmentError (Hole (Maybe Name) address)) ': effects) a -> Evaluator (Hole (Maybe Name) address) value effects a
|
||||
resumingEnvironmentError = interpret (\ (Resumable (FreeVariable name)) -> pure (Partial (Just name)))
|
||||
resumingEnvironmentError = runResumableWith (\ (FreeVariable name) -> pure (Partial (Just name)))
|
||||
|
||||
resumingTypeError :: ( Alternative (m address Type (State TypeMap ': effects))
|
||||
, Effects effects
|
||||
|
Loading…
Reference in New Issue
Block a user