See https://github.com/purescript/purescript/pull/3473.
"devDependencies": {
"babel-cli": "^6.8.0",
"babel-preset-es2015": "^6.6.0"
+ },
+ "peerDependencies": {
+ "purescript": ">=0.12.2"
}
}
const matchErrorsSeparator = /\n(?=Error)/;
const errors = pscMessage.split(matchErrorsSeparator);
for (const error of errors) {
- const matchErrLocation = /at (.+\.purs) line (\d+), column (\d+) - line (\d+), column (\d+)/;
+ const matchErrLocation = /at (.+\.purs):(\d+):(\d+) - (\d+):(\d+) \(line \2, column \3 - line \4, column \5\)/;
const [, filename] = matchErrLocation.exec(error) || [];
if (!filename) continue;