Top level splice in Template Haskell has over-ambitious lexical scope?
|Reported by:||mightybyte||Owned by:|
|Operating System:||Linux||Architecture:||x86_64 (amd64)|
|Type of failure:||Incorrect warning at compile-time||Test Case:||th/T5971|
|Related Tickets:||Differential Rev(s):|
ghc: panic! (the 'impossible' happened)
(GHC version 7.4.1 for x86_64-unknown-linux):
While working on this project https://github.com/mightybyte/snaplet-postgresql-simple I encountered a GHC panic. To reproduce, check out revision 6573d4359c5cb7699c931c44ebf1bf135099f83b (currently HEAD of the master branch), cabal install it, then go to the example directory and build with "ghc --make Site.hs".
This has caused the crash for me on two different Linux systems with GHC 7.4.1. I realize it requires building a large number of package dependencies, but I have no idea of how to construct a smaller test case. It should be pretty easy to build these dependencies with cabal or cabal-dev.
Change History (17)
comment:8 Changed 5 years ago by
|Milestone:||7.4.2 → 7.6.1|
|Type of failure:||Compile-time crash → Incorrect warning at compile-time|
|Version:||7.4.1 → 7.5|
comment:10 Changed 5 years ago by
|Summary:||GHC Panic: nameModule → Top level splice in Template Haskell has over-ambitious lexical scope?|