Skip to content

JavaScript: `zipWithEqual: unequal lists: assignAllEqual` panic

When compiling with the JavaScript backend, the RepPolyWrappedVar2 test can fail with the following output:

Compile failed (exit code 1) errors were:
javascript-unknown-ghcjs-ghc: panic! (the 'impossible' happened)
  GHC version 9.7.20230418:
	zipWithEqual: unequal lists: assignAllEqual
  CallStack (from HasCallStack):
    panic, called at compiler/GHC/Utils/Misc.hs:248:36 in ghc:GHC.Utils.Misc
    zipWithEqual, called at compiler/GHC/Utils/Misc.hs:246:44 in ghc:GHC.Utils.Misc
    zipWithEqual, called at compiler/GHC/JS/Make.hs:516:33 in ghc:GHC.JS.Make
    assignAllEqual, called at compiler/GHC/StgToJS/Utils.hs:25:3 in ghc:GHC.StgToJS.Utils
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information