Commit 2a987930 authored by Niels Bunkenburg's avatar Niels Bunkenburg

Add pretty printing for REPL type errors

parent dacde59d
Pipeline #214 canceled with stage
......@@ -123,7 +123,7 @@ replEvalExp q = case filter (not . isSpace) q of
ParseFailed _ f -> return $ Just f
ParseOk e ->
case inferHSEExp ps e of
Left e -> return $ Just $ show e
Left e -> return $ Just $ showTIError defaultAHOptions e
Right e -> return Nothing
replEvalCommand :: String -> Repl (Maybe String, Bool)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment