}
}
private static void compileAskHaddock(final Module module) {
Project project = module.getProject();
final Task haddockBackgroundTask = new Task.Backgroundable(project, "Setting up Haddock", true) {
public void run(ProgressIndicator indicator) {
indicator.setText("Please wait while setting up Haddock (Haskell documentation tool) installation...");
indicator.setText2("Checking Haddock installation...");
indicator.setFraction(0.0);
HaddockLocation.get(module, indicator);
indicator.setFraction(1.0);
}
}.setCancelText("Stop Haddock installation");
ApplicationManager.getApplication().invokeLater(new Runnable() {
public void run() {
haddockBackgroundTask.queue();
}
});
}