-
Notifications
You must be signed in to change notification settings - Fork 66
Description
I use bazel to build my system. I want to use haskell-language (hls) server and I've written(generated) a mutlicradle hie.yaml with each subcradle being a bios cradle loading the flags from a specific file.
Often, hls returns a Could not find module
but when I look at the generated bios files, they contain the module.
For instance
hie-bios check Model/Reactions.hs
Model/Reactions.hs:18:1:Could not find module ‘Common.Conditions’
but hie-bios flags Model/Reactions.hs
lists Common/Conditions.hs
. My guess is that the files that contain the flags loaded for each cradle are too big (2350 lines, or 350000 characters) and that ghc ignores Common/Conditions.hs .
I am trying to check this by editing manually the files containing the hie-bios flags. Meanwhile do you think this is a good guess ?
hie-bios is capable of using stack or cabal "components", is there a way to create/generate one artificially since bazel doesn't seem to have those speicifcally ?
CC @aherrmann (rules_haskell awesome maintainer)