Skip to content

Commit 99563a5

Browse files
committed
Allow users to specify whether to use cabal's multi-repl feature
We add an option to `Config` that allows clients to specify how HLS should load components. The three options are: * SessionLoadSingleComponent: Always load only a single component when a new component is discovered. * SessionLoadMultipleComponents: Always allow the cradle to load multiple components at once. This might not be always possible, e.g., if the tool doesn't support multiple components loading. The cradle can decide how to handle these situations. * SessionAuto: Leave the decision to the individual cradle type. Some cradles have good support for loading multiple components, while others do not. So use multiple components loading for tools, such as cabal, and force single component loading for tools that do not support multiple components, such as stack.
1 parent 334b4d4 commit 99563a5

File tree

4 files changed

+68
-329
lines changed

4 files changed

+68
-329
lines changed

cabal.project

+5
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,8 @@ constraints:
4242
-- We want to be able to benefit from the performance optimisations
4343
-- in the future, thus: TODO: remove this flag.
4444
bitvec -simd
45+
46+
source-repository-package
47+
type: git
48+
location: https://github.com/fendor/hie-bios
49+
tag: 10afd5b50475b7f8877296cd65614a1a72253941

0 commit comments

Comments
 (0)