1
0
forked from GitHub/gf-core

Don't print stack traces in Command.hs

They don't provide useful info anyways and they are needlessly verbose.
This commit is contained in:
Andreas Källberg
2021-06-16 14:26:22 +08:00
parent f23031ea1d
commit b1ed63b089

View File

@@ -741,7 +741,7 @@ pgfCommands = Map.fromList [
Nothing -> do putStrLn ("unknown category of function identifier "++show id)
return void
[e] -> case inferExpr pgf e of
Left tcErr -> error $ render (ppTcError tcErr)
Left tcErr -> errorWithoutStackTrace $ render (ppTcError tcErr)
Right (e,ty) -> do putStrLn ("Expression: "++showExpr [] e)
putStrLn ("Type: "++showType [] ty)
putStrLn ("Probability: "++show (probTree pgf e))