Skip to content

Commit efa6fb1

Browse files
fendorsoulomoon
authored andcommitted
Fix typos in hls-cabal-fmt-plugin (haskell#4399)
1 parent 3adc3b2 commit efa6fb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/hls-cabal-fmt-plugin/src/Ide/Plugin/CabalFmt.hs

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ provider recorder _ _ _ (FormatRange _) _ _ _ = do
6464
throwError $ PluginInvalidParams "You cannot format a text-range using cabal-fmt."
6565
provider recorder plId ideState _ FormatText contents nfp opts = do
6666
let cabalFmtArgs = [ "--indent", show tabularSize]
67-
cabalFmtExePath <- fmap T.unpack $ liftIO $ runAction "cabal-gild" ideState $ usePropertyAction #path plId properties
67+
cabalFmtExePath <- fmap T.unpack $ liftIO $ runAction "cabal-fmt" ideState $ usePropertyAction #path plId properties
6868
x <- liftIO $ findExecutable cabalFmtExePath
6969
case x of
7070
Just _ -> do
@@ -85,7 +85,7 @@ provider recorder plId ideState _ FormatText contents nfp opts = do
8585
pure $ InL fmtDiff
8686
Nothing -> do
8787
log Error $ LogFormatterBinNotFound cabalFmtExePath
88-
throwError (PluginInternalError "No installation of cabal-gild could be found. Please install it globally, or provide the full path to the executable")
88+
throwError (PluginInternalError "No installation of cabal-fmt could be found. Please install it globally, or provide the full path to the executable")
8989
where
9090
fp = fromNormalizedFilePath nfp
9191
tabularSize = opts ^. L.tabSize

0 commit comments

Comments
 (0)