Skip to content

Could not find module  #275

@teto

Description

@teto

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)

Metadata

Metadata

Assignees

No one assigned

    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