2022-04-17 20:18:22 +03:00
|
|
|
# This can be symlinked as hie.yaml to make hls use a different ghc version
|
|
|
|
# from the default stack.yaml.
|
|
|
|
#
|
|
|
|
# Eg mac m1 users could use it to select ghc 8.10,
|
|
|
|
# until there is a ghc-9-compatible arm hls binary.
|
|
|
|
# (Though, since such a binary is relatively easy to build yourself,
|
|
|
|
# and 2-3x faster, I recommend doing that instead.)
|
2021-12-21 21:41:55 +03:00
|
|
|
|
|
|
|
cradle:
|
|
|
|
stack:
|
2022-04-17 20:18:22 +03:00
|
|
|
stackYaml: "stack8.10.yaml"
|
2021-12-21 21:41:55 +03:00
|
|
|
|
|
|
|
# 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"
|
2022-01-02 04:55:59 +03:00
|
|
|
- path: "tools/"
|
|
|
|
component: "hledger:lib"
|
2021-12-21 21:41:55 +03:00
|
|
|
|
|
|
|
# silences hls error for Shake.hs, but I think also ignores actual errors
|
|
|
|
- path: "Shake.hs"
|
|
|
|
component: "hledger:lib"
|