mirror of
https://github.com/github/semantic.git
synced 2024-12-19 12:51:52 +03:00
just don't export Trace at all
This commit is contained in:
parent
484011666c
commit
2c4e3a0ca7
@ -26,8 +26,6 @@ import Data.Text as X (Text)
|
||||
import Data.These as X
|
||||
import Data.Union as X
|
||||
|
||||
import Debug.Trace as X hiding (trace)
|
||||
|
||||
import Control.Exception as X hiding (Handler (..), assert, evaluate, throw, throwIO, throwTo)
|
||||
|
||||
-- Typeclasses
|
||||
|
@ -94,8 +94,8 @@ resumingResolutionError = runResolutionErrorWith (\ err -> raise (trace ("Resolu
|
||||
resumingLoadError :: Evaluator location term value (Resumable (LoadError term) ': effects) a -> Evaluator location term value effects a
|
||||
resumingLoadError = runLoadErrorWith (\ (LoadError _) -> pure [])
|
||||
|
||||
resumingEvalError :: (AbstractHole value, Show value) => Evaluator location term value (Resumable (EvalError value) ': effects) a -> Evaluator location term value effects a
|
||||
resumingEvalError = runEvalErrorWith (\ err -> traceM ("EvalError" <> show err) *> case err of
|
||||
resumingEvalError :: (AbstractHole value, Member Trace effects, Show value) => Evaluator location term value (Resumable (EvalError value) ': effects) a -> Evaluator location term value effects a
|
||||
resumingEvalError = runEvalErrorWith (\ err -> traceE ("EvalError" <> show err) *> case err of
|
||||
EnvironmentLookupError{} -> pure hole
|
||||
DefaultExportError{} -> pure ()
|
||||
ExportError{} -> pure ()
|
||||
|
Loading…
Reference in New Issue
Block a user