Open
Description
(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.