hie-bios icon indicating copy to clipboard operation
hie-bios copied to clipboard

Be able to use several Stack projects (and maybe Cabal too?)

Open sir4ur0n opened this issue 5 years ago • 2 comments

Hello,

Currently hie-bios supports multiple components for a Stack project, but apparently not multiple Stack projects.

Original issue: https://github.com/haskell/haskell-language-server/issues/145

In haskell-language-server we have the following structure (simplified):

haskell-language-server/
|- install/
  |- stack.yaml
|- stack.yaml
|- hie.yaml

We would like in hie.yaml to describe components coming from both Stack projects:

  • ./ using ./stack.yaml
  • ./install using ./install/stack.yaml

Is such a scenario currently possible? If yes, how?

If not: do you think it would make sense for hie-bios to support this?

Note: I am more familiar with Stack so I explained the Stack scenario, but apparently the limitations are the same for Cabal, so... Same questions for Cabal 😄

Thank you!

sir4ur0n avatar Jun 04 '20 22:06 sir4ur0n

You can place a hie.yaml at the root of each of the projects and ghcide and hie will work.

mpickering avatar Jun 04 '20 22:06 mpickering

Thank you @mpickering!

I can't find this feature in the README, what do you think about adding it? It seems like a pretty damn useful feature to me 😄

sir4ur0n avatar Jun 05 '20 21:06 sir4ur0n

The documentation covers this now, afacit

fendor avatar Jun 16 '23 16:06 fendor