1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 14:21:31 +03:00

Generalize throwBaseError.

This commit is contained in:
Rob Rix 2018-10-22 12:26:16 -04:00
parent dcc30249c4
commit aba2afece7

View File

@ -39,9 +39,10 @@ throwBaseError :: ( Member (Resumable (BaseError exc)) sig
, Member (Reader M.ModuleInfo) sig
, Member (Reader S.Span) sig
, Carrier sig m
, Monad m
)
=> exc resume
-> Evaluator term address value m resume
-> m resume
throwBaseError err = do
moduleInfo <- currentModule
span <- currentSpan