Skip to content

Commit 636524b

Browse files
committed
More hie to hls renaming
1 parent 5c0d1b7 commit 636524b

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

exe/Wrapper.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ main = do
5757

5858
progName <- getProgName
5959
logm $ "run entered for haskell-language-server-wrapper(" ++ progName ++ ") "
60-
++ hieVersion
60+
++ hlsVersion
6161
d <- getCurrentDirectory
6262
logm $ "Current directory:" ++ d
6363
logm $ "Operating system:" ++ os
@@ -74,12 +74,12 @@ main = do
7474
logm $ "Project GHC version:" ++ ghcVersion
7575

7676
let
77-
hieBin = "haskell-language-server-" ++ ghcVersion
78-
backupHieBin =
77+
hlsBin = "haskell-language-server-" ++ ghcVersion
78+
backupHlsBin =
7979
case dropWhileEnd (/='.') ghcVersion of
8080
[] -> "haskell-language-server"
8181
xs -> "haskell-language-server-" ++ init xs
82-
candidates' = [hieBin, backupHieBin, "haskell-language-server"]
82+
candidates' = [hlsBin, backupHlsBin, "haskell-language-server"]
8383
candidates = map (++ exeExtension) candidates'
8484

8585
logm $ "haskell-language-server exe candidates :" ++ show candidates

src/Ide/Logger.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ hlsLogger = L.Logger $ \pri txt ->
2929
-- ---------------------------------------------------------------------
3030

3131
logm :: MonadIO m => String -> m ()
32-
logm s = liftIO $ infoM "hie" s
32+
logm s = liftIO $ infoM "hls" s
3333

3434
debugm :: MonadIO m => String -> m ()
35-
debugm s = liftIO $ debugM "hie" s
35+
debugm s = liftIO $ debugM "hls" s
3636

3737
warningm :: MonadIO m => String -> m ()
38-
warningm s = liftIO $ warningM "hie" s
38+
warningm s = liftIO $ warningM "hls" s
3939

4040
errorm :: MonadIO m => String -> m ()
41-
errorm s = liftIO $ errorM "hie" s
41+
errorm s = liftIO $ errorM "hls" s
4242

4343
-- ---------------------------------------------------------------------

src/Ide/Plugin.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ makeCodeAction cas lf ideState (CodeActionParams docId range context _) = do
137137
case literalSupport of
138138
Nothing -> do
139139
let cmdParams = [J.toJSON (FallbackCodeActionParams (action ^. edit) (action ^. command))]
140-
cmd <- mkLspCommand "hie" "fallbackCodeAction" (action ^. title) (Just cmdParams)
140+
cmd <- mkLspCommand "hls" "fallbackCodeAction" (action ^. title) (Just cmdParams)
141141
return $ Just (CACommand cmd)
142142
Just _ -> return $ Just (CACodeAction action)
143143

@@ -224,7 +224,7 @@ makeExecuteCommands ecs lf ide = do
224224

225225
case parseCmdId cmdId of
226226
-- Shortcut for immediately applying a applyWorkspaceEdit as a fallback for v3.8 code actions
227-
Just ("hie", "fallbackCodeAction") ->
227+
Just ("hls", "fallbackCodeAction") ->
228228
case J.fromJSON cmdParams of
229229
J.Success (FallbackCodeActionParams mEdit mCmd) -> do
230230

@@ -289,7 +289,7 @@ makeExecuteCommands ecs lf ide = do
289289
290290
case parseCmdId cmdId of
291291
-- Shortcut for immediately applying a applyWorkspaceEdit as a fallback for v3.8 code actions
292-
Just ("hie", "fallbackCodeAction") -> do
292+
Just ("hls", "fallbackCodeAction") -> do
293293
case A.fromJSON cmdParams of
294294
A.Success (FallbackCodeActionParams mEdit mCmd) -> do
295295

src/Ide/Version.hs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ import qualified Paths_haskell_language_server as Meta
1717
import System.Directory
1818
import System.Info
1919

20-
hieVersion :: String
21-
hieVersion =
20+
hlsVersion :: String
21+
hlsVersion =
2222
let commitCount = $gitCommitCount
2323
in concat $ concat
2424
[ [$(simpleVersion Meta.version)]
@@ -27,13 +27,13 @@ hieVersion =
2727
, [" (" ++ commitCount ++ " commits)" | commitCount /= ("1"::String) &&
2828
commitCount /= ("UNKNOWN" :: String)]
2929
, [" ", display buildArch]
30-
, [" ", hieGhcDisplayVersion]
30+
, [" ", hlsGhcDisplayVersion]
3131
]
3232

3333
-- ---------------------------------------------------------------------
3434

35-
hieGhcDisplayVersion :: String
36-
hieGhcDisplayVersion = compilerName ++ "-" ++ VERSION_ghc
35+
hlsGhcDisplayVersion :: String
36+
hlsGhcDisplayVersion = compilerName ++ "-" ++ VERSION_ghc
3737

3838
getProjectGhcVersion :: Bios.Cradle Bios.CabalHelper -> IO String
3939
getProjectGhcVersion crdl =
@@ -42,8 +42,8 @@ getProjectGhcVersion crdl =
4242
(execProjectGhc crdl ["--numeric-version"])
4343

4444

45-
hieGhcVersion :: String
46-
hieGhcVersion = VERSION_ghc
45+
hlsGhcVersion :: String
46+
hlsGhcVersion = VERSION_ghc
4747

4848
-- ---------------------------------------------------------------------
4949

0 commit comments

Comments
 (0)