File tree 1 file changed +4
-4
lines changed
plugins/hls-cabal-plugin/src/Ide/Plugin/Cabal
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ addDependencySuggestCodeAction recorder plId verTxtDocId suggestions haskellFile
149
149
targets -> pure $ concat [mkCodeAction cabalFilePath (Just $ buildTargetToStringRepr target) <$>
150
150
suggestions | target <- targets]
151
151
where
152
- -- | Note the use of `pretty` funciton .
152
+ -- | Note the use of `pretty` function .
153
153
-- It converts the `BuildTarget` to an acceptable string representation.
154
154
-- It will be used in as the input for `cabal-add`'s `executeConfig`.
155
155
buildTargetToStringRepr target = render $ Pretty. pretty $ buildTargetComponentName target
@@ -274,9 +274,9 @@ getDependencyEdit recorder env cabalFilePath buildTarget dependency = do
274
274
case executeConfig (validateChanges origPackDescr) (Config {.. }) of
275
275
Nothing -> throwE $ PluginInternalError $ T. pack $ " Cannot extend build-depends in " ++ cabalFilePath
276
276
Just newContents -> do
277
- let edit = diffText caps (verTxtDocId, T. decodeUtf8 cnfOrigContents) (T. decodeUtf8 newContents) SkipDeletions
278
- logWith recorder Debug $ LogCreatedEdit edit
279
- pure edit
277
+ let edit = diffText caps (verTxtDocId, T. decodeUtf8 cnfOrigContents) (T. decodeUtf8 newContents) SkipDeletions
278
+ logWith recorder Debug $ LogCreatedEdit edit
279
+ pure edit
280
280
281
281
-- | Given a path to a haskell file, returns the closest cabal file.
282
282
-- If cabal file wasn't found, gives Nothing.
You can’t perform that action at this time.
0 commit comments