Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.
This repository was 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
haskell/hie-bios
#119
@fendor

Description

@fendor

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions