static final String EOLN = "\n";
public static List<GHCMessage> compile(VirtualFile output, String fileName, @NotNull Module module, boolean tests) {
try {
CompilerLocation compiler = CompilerLocation.get(module);
if (compiler == null)
return Collections.emptyList();
List<String> args = compiler.getCompileOptionsList(
"-m", "Compile",
"-s", GHCUtil.rootsAsString(module, tests)
);
if (output != null) {
args.addAll(Arrays.asList(