mirror of
https://github.com/github/semantic.git
synced 2024-12-20 05:11:44 +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.These as X
|
||||||
import Data.Union 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)
|
import Control.Exception as X hiding (Handler (..), assert, evaluate, throw, throwIO, throwTo)
|
||||||
|
|
||||||
-- Typeclasses
|
-- 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 :: Evaluator location term value (Resumable (LoadError term) ': effects) a -> Evaluator location term value effects a
|
||||||
resumingLoadError = runLoadErrorWith (\ (LoadError _) -> pure [])
|
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 :: (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 -> traceM ("EvalError" <> show err) *> case err of
|
resumingEvalError = runEvalErrorWith (\ err -> traceE ("EvalError" <> show err) *> case err of
|
||||||
EnvironmentLookupError{} -> pure hole
|
EnvironmentLookupError{} -> pure hole
|
||||||
DefaultExportError{} -> pure ()
|
DefaultExportError{} -> pure ()
|
||||||
ExportError{} -> pure ()
|
ExportError{} -> pure ()
|
||||||
|
Loading…
Reference in New Issue
Block a user