Skip to content

Commit e612d0a

Browse files
committed
Fix #22, Don't use color codes in error messages
1 parent 0697678 commit e612d0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/Main.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ server externs port = do
6565
compile input
6666
| length input > 20000 = return $ Left "Please limit your input to 20000 characters"
6767
| otherwise = do
68-
let printErrors = P.prettyPrintMultipleErrors P.defaultPPEOptions
68+
let printErrors = P.prettyPrintMultipleErrors (P.defaultPPEOptions { P.ppeCodeColor = Nothing })
6969
case P.parseModuleFromFile (const "<file>") (undefined, input) of
7070
Left parseError ->
7171
return . Left . printErrors . P.MultipleErrors . return . P.toPositionedError $ parseError

0 commit comments

Comments
 (0)