Pretty print type errors a little better (but more work needed)
This commit is contained in:
parent
18063e5acd
commit
9b02ad780f
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue