Panic when using DerivingGeneric with hs-boot
When a module that uses DerivingGeneric
has an hs-boot file, a panic like the following results:
ghc: panic! (the 'impossible' happened)
(GHC version 7.6.3 for x86_64-unknown-linux):
tcIfaceGlobal (local): not found:
main:A.D1Test{tc apn}
[(roo,ghc: panic! (the 'impossible' happened)
(GHC version 7.6.3 for x86_64-unknown-linux):
ghc: panic! (the 'impossible' happened)
(GHC version 7.6.3 for x86_64-unknown-linux):
tcIfaceGlobal (local): not found:
The attached files demonstrate the issue. To reproduce, run ghc --make C
. Note that running the same command a second time will not cause the error, unless *.hi*
files are deleted.