purs-loader icon indicating copy to clipboard operation
purs-loader copied to clipboard

.some called on a string value

Open ethul opened this issue 7 years ago • 0 comments

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' }

ethul avatar Jul 10 '17 13:07 ethul