Skip to content

ghc panic when running GI.init on intero REPL

I cloned the https://github.com/haskell-gi/gi-gtk-examples repo to learn to use gi-gtk, deleted all version numbers in the .cabal file to make it build with the latest stack resolver (lts-12.2) and then opened ButtonBox.hs in emacs (spacemacs) with intero, opened the intero repl (without actually loading the buffer into the repl*) and what happened follows:

Starting:
  stack ghci --with-ghc ghci "--docker-run-args=--interactive=true --tty=false" --no-build --no-load gi-gtk-examples
GHCi, version 8.4.3: http://www.haskell.org/ghc/  :? for help
Loaded GHCi configuration from /home/vicente/Escritorio/gi-gtk-examples/.stack-work/intero/intero-scriptBbJ8Bq
λ import qualified GI.Gtk as GI (main, init)
λ GI.init Nothing
ghc: panic! (the 'impossible' happened)
  (GHC version 8.4.3 for x86_64-unknown-linux):
	nameModule
  system $dShow_a8qH
  Call stack:
      CallStack (from HasCallStack):
        callStackDoc, called at compiler/utils/Outputable.hs:1150:37 in ghc:Outputable
        pprPanic, called at compiler/basicTypes/Name.hs:241:3 in ghc:Name

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

the contents of /home/vicente/Escritorio/gi-gtk-examples/.stack-work/intero/intero-scriptBbJ8Bq are:

:set prompt ""
:set -fbyte-code
:set -fdefer-type-errors
:set -fdiagnostics-color=never
:set prompt "\4 "

Note: It happens on a terminal ghci invocation too, given the same parameters and configuration.

Trac metadata
Trac field Value
Version 8.4.3
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component GHCi
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information