mirror of
https://github.com/github/semantic.git
synced 2024-12-22 14:21:31 +03:00
Generalize throwBaseError.
This commit is contained in:
parent
dcc30249c4
commit
aba2afece7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user