Skip to content

HLS multi-component bug in primer-service and primer-test #181

Open
@georgefst

Description

@georgefst

(Just tracking this here in case anyone bumps in to it, and so that I've got a record of what the issue is for when I inevitably hit it again.)

If we load primer/primer-service/exe-server/Main.hs in to an editor running Haskell Language Server, we'll see a bizarre error in runDB:

Couldn't match type 'Primer.Database.Op' with 'Primer.Database.Op'

This is an instance of haskell/haskell-language-server#1370.

Workaround: load some module from lib:primer-service in to the editor. e.g. primer-service/src/Primer/Server.hs (EDIT: and one from primer-selda e.g. primer-selda/src/Primer/Database/Selda.hs). This may take a few seconds for HLS to re-initialise with the new component, but it should resolve the error.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions