Skip to content

ghc -c recompiles TH every time while --make doesn't

https://github.com/nh2/ghc-bug-recompiles-th-on-c

ghc -c Test.hs  # compiles
ghc -c Test.hs  # compiles (and loads TH) again

I would expect ghc to print

compilation IS NOT requried

since ghc --make does not recompile either, and the created .hi and .o files are identical.

Trac metadata
Trac field Value
Version 7.6.3
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC mail@nh2.me
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information