Skip to content

Commit d4f1914

Browse files
fendorVeryMilkyJoe
andauthored
Update plugins/hls-cabal-plugin/src/Ide/Plugin/Cabal/CabalAdd.hs
Co-authored-by: VeryMilkyJoe <[email protected]>
1 parent 1402c42 commit d4f1914

File tree

1 file changed

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

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,9 +278,8 @@ getDependencyEdit recorder env cabalFilePath buildTarget dependency = do
278278
pure edit
279279

280280
-- | Given a path to a haskell file, returns the closest cabal file.
281-
-- If package.yaml is present in same directory as .cabal file, it returns nothing, because adding a dependency to a generated cabal file
282-
-- will break propagation of changes from package.yaml to cabal file in stack project.
283-
--
281+
-- If a package.yaml is present in same directory as the .cabal file, returns nothing, because adding a dependency to a generated cabal file
282+
-- will break propagation of changes from package.yaml to cabal files in stack projects.
284283
-- If cabal file wasn't found, gives Nothing.
285284
findResponsibleCabalFile :: FilePath -> IO (Maybe FilePath)
286285
findResponsibleCabalFile haskellFilePath = do

0 commit comments

Comments
 (0)