#4141: Inconsistant .hi or .hi-boot compilation error
-------------------------+--------------------------------------------------
    Reporter:  odj       |        Owner:              
        Type:  bug       |       Status:  new         
    Priority:  normal    |    Milestone:              
   Component:  Compiler  |      Version:  6.12.1      
    Keywords:            |   Difficulty:              
          Os:  MacOS X   |     Testcase:              
Architecture:  x86       |      Failure:  None/Unknown
-------------------------+--------------------------------------------------

Old description:

> 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)'

New description:

 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)'
 }}}

--

Comment(by simonpj):

 Thanks for the report. Nothing springs to mind though.  Can you provide us
 with a way to reproduce your problem?  Then we can look at it.

 Incidentally, the trace file says `<loop>` which is different from the
 error message you quote.

 Simon

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4141#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to