Skip to content

misleading compiler error message in case of interface file inconsistency

I hacked on the GHC base, did something wrong (on purpose), and got a very confusing error message while compiling:

Interface file inconsistency:

home-package module `base:GHC.Base' is mentioned is needed, but is not among the dependencies of interfaces directly imported by the module being compiled

I can't even parse the first sentence!?! Maybe the message could be improved?

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