ghc panic: ieName failed pattern match (-fwarn-missing-exported-sigs)
My custom prelude module is producing the following panic in ghc:
<no location info>:
ghc: panic! (the 'impossible' happened)
(GHC version 7.10.2 for x86_64-unknown-linux):
ieName failed pattern match!
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
The module is as follows:
module Prelude
( module X
, tshow
) where
import BasePrelude as X
import Data.Text as X (Text, pack, unpack)
tshow :: Show a => a -> Text
tshow = pack . show
In my cabal file I depend on base-noprelude and base-prelude and use the above as my custom Prelude module. The panic is triggered by tshow.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 7.10.2 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |
Edited by Thomas Miedema