NotificationUtil.displayToolsNotification(NotificationType.ERROR, project, "ghc-mod",
"Could not get version info from ghc-mod executable: " + ghcModPath
);</BUG>
return false;
}
<BUG>String ghcModVersionInfo = maybeGhcModVersionInfo.trim();
Matcher m = GHC_VERSION_REGEX.matcher(ghcModVersionInfo);</BUG>
if (!m.find()) {
NotificationUtil.displayToolsNotification(NotificationType.ERROR, project, "ghc-mod",
<BUG>"Could not find GHC version in ghc-mod version info: " + ghcModVersionInfo
</BUG>
);

NotificationUtil.displayToolsNotification(NotificationType.ERROR, project, "ghc-mod",
e.getMessage()
);
return false;
}
String ghcModVersionInfo = EitherUtil.unsafeGetRight(ghcModVersionResult).trim();
Matcher m = GHC_VERSION_REGEX.matcher(ghcModVersionInfo);
if (!m.find()) {
NotificationUtil.displayToolsNotification(NotificationType.ERROR, project, "ghc-mod",
"Could not find GHC version in ghc-mod version info: '" + ghcModVersionInfo + "'"
);
