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 committed Jun 4, 2020
1 parent 2310e10 commit 62d87ac
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 35 deletions.
48 changes: 30 additions & 18 deletions hie.yaml.cbl
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,37 @@
# 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/"
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/Main.hs"
component: "haskell-language-server:exe:haskell-language-server"
- path: "./exe/Wrapper.hs"
component: "haskell-language-server:exe:haskell-language-server-wrapper"

- path: "./src"
component: "lib:haskell-language-server"

- path: "./exe/Wrapper.hs"
component: "haskell-language-server:exe:haskell-language-server-wrapper"

- 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"
47 changes: 30 additions & 17 deletions hie.yaml.stack
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,37 @@
# 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/"
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: "haskell-language-server:lib"

- path: "./src"
component: "haskell-language-server:lib"

- path: "./ghcide/src"
component: "ghcide:lib:ghcide"

- 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 62d87ac

Please sign in to comment.