aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/haskell/haskellrunconfiguration.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/haskell/haskellrunconfiguration.cpp')
-rw-r--r--plugins/haskell/haskellrunconfiguration.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/haskell/haskellrunconfiguration.cpp b/plugins/haskell/haskellrunconfiguration.cpp
index ea0233f..3b568b7 100644
--- a/plugins/haskell/haskellrunconfiguration.cpp
+++ b/plugins/haskell/haskellrunconfiguration.cpp
@@ -91,11 +91,11 @@ Runnable HaskellRunConfiguration::runnable() const
.relativeFilePath(
buildConfiguration->buildDirectory().toString())
+ "\" ";
- QString executable = extraAspect<HaskellExecutableAspect>()->value();
+ const QString executable = extraAspect<HaskellExecutableAspect>()->value();
r.commandLineArguments += "exec \"" + executable + "\"";
- auto argumentsAspect = extraAspect<ArgumentsAspect>();
- if (!argumentsAspect->arguments().isEmpty())
- r.commandLineArguments += " -- " + argumentsAspect->arguments();
+ const QString arguments = extraAspect<ArgumentsAspect>()->arguments(macroExpander());
+ if (!arguments.isEmpty())
+ r.commandLineArguments += " -- " + arguments;
r.workingDirectory = projectDirectory;
r.environment = extraAspect<LocalEnvironmentAspect>()->environment();
r.executable = r.environment.searchInPath(HaskellManager::stackExecutable().toString()).toString();