Skip to content

my_discr is not implemented for LitNumInt* and LitNumWord*

I am running the bytecode interpreter on optimised core and it is tripping up compiling packages which use WordN and IntN literals.

The form of the error is..

<no location info>: error:
    panic! (the 'impossible' happened)
  GHC version 9.5.20220719:
	schemeE(StgCase).my_discr
  9##8
  Call stack:
      CallStack (from HasCallStack):
        callStackDoc, called at compiler/GHC/Utils/Panic.hs:188:37 in ghc:GHC.Utils.Panic
        pprPanic, called at compiler/GHC/StgToByteCode.hs:947:20 in ghc:GHC.StgToByteCode

Please report this as a GHC bug:  https://www.haskell.org/ghc/reportabug

Perhaps @luite can suggest to me the correct way to fix such errors?

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information