GHC panic when using GHC plugins
I'm running GHC 8.0.2 on Windows 10. At first I was playing around with making my own type-checker plugin and I kept getting
ghc.EXE: panic! (the 'impossible' happened)
(GHC version 8.0.2 for x86_64-unknown-mingw32):
Static flags have not been initialised!
Please call GHC.parseStaticFlags early enough.
on certain function calls (things like printing Docs). But now on an unrelated project I tried using the dump-core plugin and I'm getting the same error.
The minimal example I can produce is simply
module Main where
main = return ()
compiled with
stack exec ghc -- -fplugin=DumpCore PluginTest.hs
(or I'm guessing equivalently ghc -fplugin=DumpCore PluginTest.hs
)
Make sure to install the dump-core package first.
Trac metadata
Trac field | Value |
---|---|
Version | 8.0.2 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |