Skip to content
This repository has been archived by the owner on Oct 7, 2020. It is now read-only.

HieWrapper discovers the wrong ghc version in a multi-stack cradle #1490

Closed
fendor opened this issue Dec 22, 2019 · 1 comment · Fixed by haskell/hie-bios#119 or #1601
Closed

HieWrapper discovers the wrong ghc version in a multi-stack cradle #1490

fendor opened this issue Dec 22, 2019 · 1 comment · Fixed by haskell/hie-bios#119 or #1601
Assignees

Comments

@fendor
Copy link
Collaborator

fendor commented Dec 22, 2019

In a project, with a hie.yaml such as

cradle:
  stack:
    - path: .
      component: "package:lib"

Hie will identify this as a "Multi-Cradle".
A hie.yaml such as:

cradle:
  cabal:
    - path: .
      component: "lib:package"

Will also be identified as a "Multi-Cradle".

Haskell IDE Engine can not tell the difference between a "Cabal"-Multi-Cradle and a "Stack"-Multi-Cradle, but it should.

Moreover, I suggest that the following should be handled gracefully:

cradle:
  multi:
    - path: .
      config:
        cradle:
          cabal: 
            component: "lib:package"
    - path: examples/
      config:
        cradle:
          none:

I think, that this still should be identified as a Cabal-Multi-Cradle and analogously the Stack-Multi-Cradle.
Support for this feature needs to be implemented in hie-bios.

cc @mpickering

Issue is encountered in #1482.

@fendor
Copy link
Collaborator Author

fendor commented Feb 1, 2020

Only closed if hie-bios gets updated.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant