Assert failed: varToRecFieldOcc when compiling lsp-types
When compiling the lsp-types
package, I'm seeing an assertion failure:
[14 of 52] Compiling Language.LSP.Types.TextDocument ( src/Language/LSP/Types/TextDocument.hs, dist/build/Language/LSP/Types/TextDocument.o, dist/build/Language/LSP/Types/TextDocument.dyn_o )
<no location info>: error:
ASSERT failed!
CallStack (from HasCallStack):
assert, called at compiler/GHC/Types/Name/Occurrence.hs:465:3 in ghc:GHC.Types.Name.Occurrence
varToRecFieldOcc, called at compiler/GHC/Rename/Names.hs:1033:23 in ghc:GHC.Rename.Names
I will diagnose and fix.