feat(hie-bios): Multi-cradle, ignore directories

Related to #121
This commit is contained in:
sir4ur0n 2020-06-04 22:40:47 +02:00
parent 2310e1039c
commit 3e10ae3c51
2 changed files with 63 additions and 32 deletions

View File

@ -2,25 +2,40 @@
# in hie, using cabal as the build system. To use is, copy it to a
# file called 'hie.yaml'
cradle:
cabal:
multi:
- path: "./test/testdata/"
config: { cradle: { none: } }
- path: "./test/functional/"
component: "haskell-language-server:func-test"
- path: "./install/"
config: { cradle: { none: } }
- path: "./test/utils/"
component: "haskell-language-server:func-test"
- path: "./"
config:
cradle:
cabal:
- path: "./test/functional/"
component: "haskell-language-server:func-test"
- path: "./exe/Main.hs"
component: "haskell-language-server:exe:haskell-language-server"
- path: "./test/utils/"
component: "haskell-language-server:func-test"
- path: "./exe/Main.hs"
component: "haskell-language-server:exe:haskell-language-server"
- path: "./exe/Arguments.hs"
component: "haskell-language-server:exe:haskell-language-server"
- path: "./exe/Wrapper.hs"
component: "haskell-language-server:exe:haskell-language-server-wrapper"
- path: "./exe/Wrapper.hs"
component: "haskell-language-server:exe:haskell-language-server-wrapper"
- path: "./src"
component: "lib:haskell-language-server"
- path: "./src"
component: "lib:haskell-language-server"
- path: "./ghcide/src"
component: "ghcide:lib:ghcide"
- path: "./ghcide/exe"
component: "ghcide:exe:ghcide"
- path: "./.stack-work/"
component: "lib:haskell-language-server"
- path: "./ghcide/src"
component: "ghcide:lib:ghcide"
- path: "./ghcide/exe"
component: "ghcide:exe:ghcide"

View File

@ -2,24 +2,40 @@
# in hie, using stack as the build system. To use is, copy it to a
# file called 'hie.yaml'
cradle:
stack:
- path: "./test/functional/"
component: "haskell-language-server:func-test"
multi:
- path: "./test/testdata/"
config: { cradle: { none: } }
- path: "./test/utils/"
component: "haskell-language-server:func-test"
- path: "./install/"
config: { cradle: { none: } }
- path: "./exe/Main.hs"
component: "haskell-language-server:exe:haskell-language-server"
- path: "./"
config:
cradle:
stack:
- path: "./test/functional/"
component: "haskell-language-server:func-test"
- path: "./exe/Wrapper.hs"
component: "haskell-language-server:exe:haskell-language-server-wrapper"
- path: "./test/utils/"
component: "haskell-language-server:func-test"
- path: "./src"
component: "haskell-language-server:lib"
- path: "./exe/Main.hs"
component: "haskell-language-server:exe:haskell-language-server"
- path: "./exe/Arguments.hs"
component: "haskell-language-server:exe:haskell-language-server"
- path: "./ghcide/src"
component: "ghcide:lib:ghcide"
- path: "./exe/Wrapper.hs"
component: "haskell-language-server:exe:haskell-language-server-wrapper"
- path: "./src"
component: "haskell-language-server:lib"
- path: "./ghcide/exe"
component: "ghcide:exe:ghcide"
- path: "./.stack-work/"
component: "haskell-language-server:lib"
- path: "./ghcide/src"
component: "ghcide:lib:ghcide"
- path: "./ghcide/exe"
component: "ghcide:exe:ghcide"