Avi-D-coder / implicit-hie

Auto generate a stack or cabal multi component hie.yaml file
BSD 3-Clause "New" or "Revised" License
201 stars 17 forks source link

Multi Cradle: No prefixes matched2 #21

Closed adamschoenemann closed 3 years ago

adamschoenemann commented 3 years ago

Thanks for writing this utility! I used it and it works wonders, but I get the above error for the "Paths_" module that cabal generates.

jneira commented 3 years ago

Hi, where do you get the error? with the utility itself or using the generated hie.yaml with haskell-language-server o rghcide?

adamschoenemann commented 3 years ago

Right, while using the generated hie.yaml with haskell-language-server and VSCode

jneira commented 3 years ago

I am afraid that handling of Paths_package_name is one of the known limitations of the tool. However you can change the generated hie.yaml to make hls load them adding:

- path: dist-newstyle
  component: myproject:lib

as described here (but for stack): https://github.com/haskell/ghcide/issues/574#issuecomment-638716328

adamschoenemann commented 3 years ago

Great, thanks for the help :)