Compiler panic! hidden module redefined
Summary
Building effectful-core
results in a compiler panic.
Build log
Failed to build effectful-core-2.3.0.1.
Build log (
/Users/crumble/.cabal/logs/ghc-9.8.1/ffctfl-cr-2.3.0.1-fb08cf50.log ):
Configuring library for effectful-core-2.3.0.1..
Preprocessing library for effectful-core-2.3.0.1..
Building library for effectful-core-2.3.0.1..
ghc-9.8.1: panic! (the 'impossible' happened)
GHC version 9.8.1:
ModOrigin: hidden module redefined
x: unusable module
y: unusable module
Call stack:
CallStack (from HasCallStack):
callStackDoc, called at compiler/GHC/Utils/Panic.hs:191:37 in ghc-9.8.1-40a4:GHC.Utils.Panic
pprPanic, called at compiler/GHC/Unit/State.hs:239:14 in ghc-9.8.1-40a4:GHC.Unit.State
CallStack (from HasCallStack):
panic, called at compiler/GHC/Utils/Error.hs:503:29 in ghc-9.8.1-40a4:GHC.Utils.Error
Please report this as a GHC bug: https://www.haskell.org/ghc/reportabug
Error: cabal: Failed to build effectful-core-2.3.0.1 (which is required by
exe:test from test-0.1.0.0). See the build log above for details.
Steps to reproduce
Create and build a default cabal project with effectful-core ==2.3.0.1
in the dependencies.
Cabal file
cabal-version: 3.0
name: test
version: 0.1.0.0
-- synopsis:
-- description:
license: NONE
author: author
maintainer: maintainer@maintainer.org
-- copyright:
build-type: Simple
extra-doc-files: CHANGELOG.md
-- extra-source-files:
common warnings
ghc-options: -Wall
executable test
import: warnings
main-is: Main.hs
-- other-modules:
-- other-extensions:
build-depends: base ^>=4.19.0.0
, effectful-core ==2.3.0.1
hs-source-dirs: app
default-language: Haskell2010
Expected behavior
Panic while attempting to build effectful-core
(see build log above).
Environment
- GHC version used: 9.8.1
Optional:
- Operating System: OS X (Darwin 21.6.0 Darwin Kernel Version 21.6.0)
- System Architecture: x86_64