diff options
| author | Eike Ziller <git@eikeziller.de> | 2017-09-25 11:57:51 +0200 |
|---|---|---|
| committer | Eike Ziller <git@eikeziller.de> | 2017-10-01 20:11:08 +0200 |
| commit | ce0bd485ee6ff54099b564730f82ac7667b0fa08 (patch) | |
| tree | 22657699d7231cfbe2e3a96c1fc3a5cedcc6b2b4 /plugins/haskell/haskellplugin.cpp | |
| parent | 3f1f50c44847a0e76a95507c9566a35dfe809a78 (diff) | |
Initial Haskell project support
Shows all files from the file system tree around the .cabal file.
Provides a simple build configuration with "stack build" step.
Provides a simple run configuration with "stack exec" for each
"executable" entry.
Diffstat (limited to 'plugins/haskell/haskellplugin.cpp')
| -rw-r--r-- | plugins/haskell/haskellplugin.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/plugins/haskell/haskellplugin.cpp b/plugins/haskell/haskellplugin.cpp index 362e00f..c5386a4 100644 --- a/plugins/haskell/haskellplugin.cpp +++ b/plugins/haskell/haskellplugin.cpp @@ -26,12 +26,17 @@ #include "haskellplugin.h" #include "ghcmod.h" +#include "haskellbuildconfiguration.h" #include "haskellconstants.h" #include "haskelleditorfactory.h" #include "haskellmanager.h" +#include "haskellproject.h" +#include "haskellrunconfiguration.h" #include "optionspage.h" +#include "stackbuildstep.h" #include <coreplugin/icore.h> +#include <projectexplorer/projectmanager.h> #include <texteditor/snippets/snippetprovider.h> namespace Haskell { @@ -62,7 +67,11 @@ bool HaskellPlugin::initialize(const QStringList &arguments, QString *errorStrin addAutoReleasedObject(new HaskellEditorFactory); addAutoReleasedObject(new OptionsPage); - + addAutoReleasedObject(new HaskellBuildConfigurationFactory); + addAutoReleasedObject(new StackBuildStepFactory); + addAutoReleasedObject(new HaskellRunConfigurationFactory); + ProjectExplorer::ProjectManager::registerProjectType<HaskellProject>( + Constants::C_HASKELL_PROJECT_MIMETYPE); TextEditor::SnippetProvider::registerGroup(Constants::C_HASKELLSNIPPETSGROUP_ID, tr("Haskell", "SnippetProvider")); |
