rikvdkleij / intellij-haskell

IntelliJ plugin for Haskell
https://rikvdkleij.github.io/intellij-haskell/
Apache License 2.0
1.31k stars 94 forks source link

Multiple internall librearies not marked correctly #577

Closed majkrzak closed 3 years ago

majkrzak commented 4 years ago

When dealing with following package.yaml

internal-libraries:
  foo-core:
    source-dirs: src/core
  foo-application:
    source-dirs: src/application
    dependencies:
    - foo-core

executable:
  main:                Main.hs
  source-dirs:         app
  ghc-options:
  - -threaded
  - -rtsopts
  - -with-rtsopts=-N
  dependencies:
  - foo-core
  - foo-application:
  1. src/core is not marked as source directory
  2. Restarting repl fails with: Error parsing targets: Component CLib does not exist in package foo Can be solved by adding dummy library:
rikvdkleij commented 4 years ago

Thanks for reporting!

The plugin does not parse the package.yaml but the (in this case generated) Cabal file.

And i guess that result of using internal-libraries in the Cabal file is common stanzas which is not (yet) supported.

rikvdkleij commented 3 years ago

The plugin doesn't support package.yaml files and I also have no intention to support this. PR's are welcomed :smile:

Support common stanzas in Cabal files is on my todo list.