Pretty print type errors a little better (but more work needed)

This commit is contained in:
John Wiegley 2018-05-01 20:35:01 -04:00
parent 18063e5acd
commit 9b02ad780f

View file

@ -73,7 +73,7 @@ main = do
when (check opts) $ do
case HM.inferTop Env.empty [("it", stripAnnotation expr)] of
Left err ->
errorWithoutStackTrace $ "Type error: " ++ show err
errorWithoutStackTrace $ "Type error: " ++ PS.ppShow err
Right ty ->
liftIO $ putStrLn $ "Type of expression: " ++ PS.ppShow ty