Skip to content

ModOrigin: hidden module redefined and crash in ghci when completing module name

Summary

ghci crashes when I try to use autocomplete after writing import, in a place that looks correct (not in strings or comments).

This has just started happening late in the morning, I was using it some hours before without problems.

Steps to reproduce

  • In ghci, write import on an empty line.
  • Write any sequence of bytes other than a newline. For this example, I wrote Data.M.
  • Press Tab, or any other key supposed to trigger autocompletion.

ghci output the text below and exit with code 0.

ghci> import Data.Mghc: panic! (the 'impossible' happened)
  (GHC version 9.0.2:
	ModOrigin: hidden module redefined

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

Leaving GHCi.

Expected behavior

ghci should display a list of all completions available for the text previously input.

Environment

  • GHC version used: 9.0.2

Optional:

  • Operating System: Arch Linux
  • System Architecture:
Edited by anon anon
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information