-
-
Notifications
You must be signed in to change notification settings - Fork 320
/
hie-stack.yaml
47 lines (39 loc) · 1.49 KB
/
hie-stack.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Symlink this as hie.yaml to make HLS use the stack yaml/ghc mentioned below.
# This works better than relying on the implicit cradle, which doesn't
# work with multi-package projects (opening a file from a second package breaks HLS).
# Circa HLS 1.9.1.0, this one (using GHC 9.4) does not work.
cradle:
stack:
stackYaml: "stack.yaml"
# since there is a hie.yaml, these must be listed explicitly
# (a current limitation of hls with a multi-package stack project):
components:
- path: "hledger-lib/"
component: "hledger-lib:lib"
- path: "hledger-lib/test/doctests.hs"
component: "hledger-lib:test:doctest"
- path: "hledger-lib/test/unittest.hs"
component: "hledger-lib:test:unittest"
- path: "hledger/"
component: "hledger:lib"
- path: "hledger/app/"
component: "hledger:exe:hledger"
- path: "hledger/test/unittest.hs"
component: "hledger:test:unittest"
- path: "hledger/bench/"
component: "hledger:bench:bench"
- path: "hledger-ui/"
component: "hledger-ui:exe:hledger-ui"
- path: "hledger-web/"
component: "hledger-web:lib"
- path: "hledger-web/app/"
component: "hledger-web:exe:hledger-web"
- path: "hledger-web/test/"
component: "hledger-web:test:test"
- path: "bin/"
component: "hledger:lib"
- path: "tools/"
component: "hledger:lib"
# silences hls error for Shake.hs, but I think also ignores actual errors
- path: "Shake.hs"
component: "hledger:lib"