Skip to content

Commit

Permalink
feat(hie-bios): Multi-cradle, ignore directories
Browse files Browse the repository at this point in the history
Related to haskell#121
  • Loading branch information
sir4ur0n authored and jneira committed Jun 12, 2020
1 parent 2186df0 commit fb641a8
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 32 deletions.
49 changes: 32 additions & 17 deletions hie.yaml.cbl
Original file line number Diff line number Diff line change
Expand Up @@ -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"
46 changes: 31 additions & 15 deletions hie.yaml.stack
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit fb641a8

Please sign in to comment.