int newLineIndex = ghcError.indexOf(newLine);
fileName = ghcError.substring(0, newLineIndex);
int nextNewLineIndex = ghcError.indexOf(newLine, newLineIndex + newLine.length());
String posString = ghcError.substring(newLineIndex + newLine.length(), nextNewLineIndex);
CompilerMessageCategory cmc;
if (posString.startsWith("W")) {
cmc = CompilerMessageCategory.WARNING;
posString = posString.substring(1);
} else if (posString.startsWith("E")) {
cmc = CompilerMessageCategory.ERROR;