Skip to content

Add Code Action for adding a module to your project's cabal file #4617

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ packages:
./hls-plugin-api
./hls-test-utils

source-repository-package
type: git
location: https://github.com/Bodigrim/cabal-add.git
tag: 83de92dcce6221d66bdedca0b462fedd3b06afce

index-state: 2025-05-12T13:26:29Z

Expand Down
10 changes: 7 additions & 3 deletions haskell-language-server.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,13 @@ library hls-cabal-plugin
Ide.Plugin.Cabal.Completion.Types
Ide.Plugin.Cabal.Definition
Ide.Plugin.Cabal.FieldSuggest
Ide.Plugin.Cabal.Files
Ide.Plugin.Cabal.OfInterest
Ide.Plugin.Cabal.LicenseSuggest
Ide.Plugin.Cabal.CabalAdd
Ide.Plugin.Cabal.Rules
Ide.Plugin.Cabal.CabalAdd.Command
Ide.Plugin.Cabal.CabalAdd.CodeAction
Ide.Plugin.Cabal.CabalAdd.Types
Ide.Plugin.Cabal.Orphans
Ide.Plugin.Cabal.Outline
Ide.Plugin.Cabal.Parse
Expand All @@ -276,14 +281,14 @@ library hls-cabal-plugin
, lens
, lsp ^>=2.7
, lsp-types ^>=2.3
, mtl
, regex-tdfa ^>=1.3.1
, text
, text-rope
, transformers
, unordered-containers >=0.2.10.0
, containers
, cabal-add
, process
, aeson
, Cabal
, pretty
Expand Down Expand Up @@ -315,7 +320,6 @@ test-suite hls-cabal-plugin-tests
, lens
, lsp-types
, text
, hls-plugin-api

-----------------------------
-- class plugin
Expand Down
489 changes: 164 additions & 325 deletions plugins/hls-cabal-plugin/src/Ide/Plugin/Cabal.hs

Large diffs are not rendered by default.

326 changes: 0 additions & 326 deletions plugins/hls-cabal-plugin/src/Ide/Plugin/Cabal/CabalAdd.hs

This file was deleted.

Loading
Loading