purs-loader
purs-loader copied to clipboard
.some called on a string value
It is possible that parsed.result
can be a string. Therefore, we cannot call .some
directly.
https://github.com/ethul/purs-loader/blob/712dabc76c3f4495098e8f6bae47610c2857c59f/src/ide.js#L248
{ result: 'Couldn\'t find file at: /path/to/File.purs', resultType: 'error' }