Skip to content

Commit eb06c6f

Browse files
committed
Use hie-bios 0.15.0
This allows us to benefit from the `cabal path` command in hie-bios for improved start-up time.
1 parent fb17921 commit eb06c6f

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

cabal.project

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ packages:
88
./hls-test-utils
99

1010

11-
index-state: 2025-04-19T07:34:07Z
11+
index-state: 2025-05-06T13:26:29Z
1212

1313
tests: True
1414
test-show-details: direct

ghcide/ghcide.cabal

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ library
7373
, Glob
7474
, haddock-library >=1.8 && <1.12
7575
, hashable
76-
, hie-bios ^>=0.14.0
76+
, hie-bios ^>=0.15.0
7777
, hie-compat ^>=0.3.0.0
7878
, hiedb ^>= 0.6.0.2
7979
, hls-graph == 2.10.0.0

ghcide/session-loader/Development/IDE/Session/Diagnostics.hs

+4-2
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,17 @@ data CradleErrorDetails =
2828
Depicts the cradle error in a user-friendly way.
2929
-}
3030
renderCradleError :: CradleError -> Cradle a -> NormalizedFilePath -> FileDiagnostic
31-
renderCradleError (CradleError deps _ec ms) cradle nfp =
31+
renderCradleError cradleError cradle nfp =
3232
let noDetails =
3333
ideErrorWithSource (Just "cradle") (Just DiagnosticSeverity_Error) nfp (T.unlines $ map T.pack userFriendlyMessage) Nothing
3434
in
3535
if HieBios.isCabalCradle cradle
3636
then noDetails & fdLspDiagnosticL %~ \diag -> diag{_data_ = Just $ Aeson.toJSON CradleErrorDetails{cabalProjectFiles=absDeps}}
3737
else noDetails
3838
where
39-
absDeps = fmap (cradleRootDir cradle </>) deps
39+
ms = cradleErrorStderr cradleError
40+
41+
absDeps = fmap (cradleRootDir cradle </>) (cradleErrorDependencies cradleError)
4042
userFriendlyMessage :: [String]
4143
userFriendlyMessage
4244
| HieBios.isCabalCradle cradle = fromMaybe ms $ fileMissingMessage <|> mkUnknownModuleMessage

stack-lts22.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ extra-deps:
2020
- Diff-0.5
2121
- floskell-0.11.1
2222
- hiedb-0.6.0.2
23-
- hie-bios-0.14.0
23+
- hie-bios-0.15.0
2424
- implicit-hie-0.1.4.0
2525
- lsp-2.7.0.0
2626
- lsp-test-0.17.1.0

stack.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ extra-deps:
2222
- floskell-0.11.1
2323
- hiedb-0.6.0.2
2424
- implicit-hie-0.1.4.0
25+
- hie-bios-0.15.0
2526
- hw-fingertree-0.1.2.1
2627
- monad-dijkstra-0.1.1.5
2728
- retrie-1.2.3

0 commit comments

Comments
 (0)