Skip to content

Commit 217aeb0

Browse files
committed
docs
1 parent 185a0e9 commit 217aeb0

File tree

1 file changed

+3
-4
lines changed
  • plugins/hls-cabal-plugin/src/Ide/Plugin/Cabal

1 file changed

+3
-4
lines changed

plugins/hls-cabal-plugin/src/Ide/Plugin/Cabal/CabalAdd.hs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,7 @@ instance Logger.Pretty CabalAddCommandParams where
126126
--
127127
-- Returns disabled action if no cabal files given.
128128
--
129-
-- Takes haskell file (source of diagnostics) and
130-
-- cabal file (the file that will be edited) paths to create a relative path
129+
-- Takes haskell file and cabal file paths to create a relative path
131130
-- to the haskell file, which is used to get a `BuildTarget`.
132131
--
133132
-- In current implementation the dependency is being added to the main found
@@ -138,8 +137,8 @@ addDependencySuggestCodeAction
138137
-> PluginId
139138
-> VersionedTextDocumentIdentifier -- ^ Cabal's versioned text identifier
140139
-> [(T.Text, T.Text)] -- ^ A dependency-version suggestion pairs
141-
-> FilePath -- ^ Path to the haskell file
142-
-> FilePath -- ^ Path to the cabal file
140+
-> FilePath -- ^ Path to the haskell file (source of diagnostics)
141+
-> FilePath -- ^ Path to the cabal file (that will be edited)
143142
-> GenericPackageDescription
144143
-> IO [CodeAction]
145144
addDependencySuggestCodeAction recorder plId verTxtDocId suggestions haskellFilePath cabalFilePath gpd = do

0 commit comments

Comments
 (0)