From fb641a8c027e86523add842f3c6043e819fe2235 Mon Sep 17 00:00:00 2001 From: sir4ur0n Date: Thu, 4 Jun 2020 22:40:47 +0200 Subject: [PATCH] feat(hie-bios): Multi-cradle, ignore directories Related to #121 --- hie.yaml.cbl | 49 ++++++++++++++++++++++++++++++++----------------- hie.yaml.stack | 46 +++++++++++++++++++++++++++++++--------------- 2 files changed, 63 insertions(+), 32 deletions(-) diff --git a/hie.yaml.cbl b/hie.yaml.cbl index b82a997749e..1f611021d8d 100644 --- a/hie.yaml.cbl +++ b/hie.yaml.cbl @@ -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" diff --git a/hie.yaml.stack b/hie.yaml.stack index 8f06c91138b..3beb9a88a21 100644 --- a/hie.yaml.stack +++ b/hie.yaml.stack @@ -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"