aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Psc.js
diff options
context:
space:
mode:
authoreric thul <thul.eric@gmail.com>2016-11-19 21:08:47 -0500
committereric thul <thul.eric@gmail.com>2016-11-19 21:08:47 -0500
commitb683b0b17cde53739ccb22da93ffb2bba2719667 (patch)
treeff604c372a8cb2c0a2e11142661d591680ed872b /src/Psc.js
parent5b28db7d119dc46c382e666fbb2110b611398c4a (diff)
downloadpurs-loader-b683b0b17cde53739ccb22da93ffb2bba2719667.tar.gz
purs-loader-b683b0b17cde53739ccb22da93ffb2bba2719667.tar.zst
purs-loader-b683b0b17cde53739ccb22da93ffb2bba2719667.zip
Emit warnings/errors to the compilation instance
Avoids duplication of warnings. Resolves #78
Diffstat (limited to 'src/Psc.js')
-rw-r--r--src/Psc.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Psc.js b/src/Psc.js
index 8fe8437..4991d5f 100644
--- a/src/Psc.js
+++ b/src/Psc.js
@@ -33,8 +33,9 @@ function compile(psModule) {
33 33
34 const compilation = spawn(options.psc, args) 34 const compilation = spawn(options.psc, args)
35 35
36 compilation.stdout.on('data', data => stderr.push(data.toString())) 36 compilation.stderr.on('data', data => {
37 compilation.stderr.on('data', data => stderr.push(data.toString())) 37 stderr.push(data.toString());
38 });
38 39
39 compilation.on('close', code => { 40 compilation.on('close', code => {
40 debug('finished compiling PureScript.') 41 debug('finished compiling PureScript.')