// todo: pass all files to compiler at once (more effective?)
for (VirtualFile file : toCompile) {
for (GHCMessage message : LaunchGHC.compile(outputDir, file.getPath(), module, tests)) {
VirtualFile errFile = LocalFileSystem.getInstance().findFileByPath(message.getFileName());
String url = errFile == null ? message.getFileName() : errFile.getUrl();
LineCol coord = message.getRange().start;
context.addMessage(
message.getCategory(), message.getErrorMessage(),
url,
coord.line, coord.column
);