Skip to content

Commit 755bc89

Browse files
committed
Use CBPV pretty printer for its type errors as well
1 parent 57844c6 commit 755bc89

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/LambdaComp/Driver.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ handleElTcError outH (Left elTcErr) = lift (hPutStrLn outH "ElTc") >> pHPrintNoC
7474
handleElTcError _ (Right prog) = pure prog
7575

7676
handleCBPVTcError :: Handle -> Either CBPV.TypeError a -> ExceptT Int IO a
77-
handleCBPVTcError outH (Left cbpvTcErr) = lift (hPutStrLn outH "CBPVTc") >> pHPrintNoColor outH cbpvTcErr >> throwError 1
77+
handleCBPVTcError outH (Left cbpvTcErr) = lift (hPutStrLn outH "CBPVTc") >> lift (hPutDoc outH $ pretty cbpvTcErr) >> throwError 1
7878
handleCBPVTcError _ (Right prog) = pure prog
7979

8080
runWithFp :: (Bool -> FilePath -> ExceptT Int IO a) -> Maybe FilePath -> ExceptT Int IO a

0 commit comments

Comments
 (0)