git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Print make warnings to stderr
b3c6682Phil Freeman
psc/Main.hs+1−1
@@ -75,7 +75,7 @@ compile (PSCMakeOptions inputGlob inputForeignGlob outputDir opts usePrefix) = d
75 exitFailure
75 exitFailure
76 Right (_, warnings') -> do
76 Right (_, warnings') -> do
77 when (P.nonEmpty warnings') $
77 when (P.nonEmpty warnings') $
78− putStrLn (P.prettyPrintMultipleWarnings (P.optionsVerboseErrors opts) warnings')
78+ hPutStrLn stderr (P.prettyPrintMultipleWarnings (P.optionsVerboseErrors opts) warnings')
79 exitSuccess
79 exitSuccess
80
80
81readInput :: InputOptions -> IO [(Either P.RebuildPolicy FilePath, String)]
81readInput :: InputOptions -> IO [(Either P.RebuildPolicy FilePath, String)]