Skip to content

Inconsistant .hi or .hi-boot compilation error

I get the following message from GHC and GHCI when compiling. I am using -boot import for several modules in this project. Things work fine until I tried calling a record syntax generated function. All my own function declarations seem to work OK.

Ouch/Structure/Bond.hs:69:85:
    Can't find interface-file declaration for variable markerSet
      Probable cause: bug in .hi-boot file, or inconsistent .hi file
      Use -ddump-if-trace to get an idea of which file caused the error
    In the second argument of `union', namely `(markerSet atom)'
    In the second argument of `($)', namely
        `union (singleton $ Label 0) (markerSet atom)'
    In the second argument of `($)', namely
        `findMax $ union (singleton $ Label 0) (markerSet atom)'
Edited by Simon Peyton Jones
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information