We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 549a652 + 3999964 commit a43b772Copy full SHA for a43b772
psc/Main.hs
@@ -25,6 +25,7 @@ import System.Console.CmdTheLine
25
import System.Directory (createDirectoryIfMissing)
26
import System.FilePath (takeDirectory)
27
import System.Exit (exitSuccess, exitFailure)
28
+import System.IO (stderr)
29
30
import Text.Parsec (ParseError)
31
@@ -51,12 +52,12 @@ compile opts input output externs = do
51
52
modules <- readInput input
53
case modules of
54
Left err -> do
- U.print err
55
+ U.hPutStr stderr $ show err
56
exitFailure
57
Right ms -> do
58
case P.compile opts (map snd ms) of
59
- U.putStrLn err
60
+ U.hPutStrLn stderr err
61
62
Right (js, exts, _) -> do
63
case output of
0 commit comments