tcLookupGlobalValue

1998-07-23 Thread Marc van Dongen

Hi there,


I would like to report the following.

After splitting up one module in two seperate modules in
two different files, I ended up with something as follows:

swift more A.lhs
 module A( a ) where
 a = 1

swift more B.lhs
 module A( b ) where
 import A( a )
 b = a + a

The compilation session (modulo empty lines) went as follows:

swift ghc-3.02 -c A.lhs
ghc-3.02: module version changed to 1; reason: no old .hi file
swift ghc-3.02 -c B.lhs
importDecl wierdness: A.a{-r6J-}
importDecl wierdness: A.a{-r6J-}
panic! (the `impossible' happened):
tcLookupGlobalValue: A.a{-r6J-}
Please report it as a compiler bug to [EMAIL PROTECTED]

Hope this helps.


Regards,


Marc [Add SPAM to my e-mail address if you don't want to send me mail.]



Re: tcLookupGlobalValue

1998-07-23 Thread Sigbjorn Finne


Hi,

see

 http://www.dcs.gla.ac.uk/mail-www/glasgow-haskell-bugs/msg01145.html

for explanationfix.

--Sigbjorn

Marc van Dongen writes:
 Hi there,
 
 
 I would like to report the following.
 
 After splitting up one module in two seperate modules in
 two different files, I ended up with something as follows:
 
 swift more A.lhs
  module A( a ) where
  a = 1
 
 swift more B.lhs
  module A( b ) where
  import A( a )
  b = a + a
 
 The compilation session (modulo empty lines) went as follows:
 
 swift ghc-3.02 -c A.lhs
 ghc-3.02: module version changed to 1; reason: no old .hi file
 swift ghc-3.02 -c B.lhs
 importDecl wierdness: A.a{-r6J-}
 importDecl wierdness: A.a{-r6J-}
 panic! (the `impossible' happened):
 tcLookupGlobalValue: A.a{-r6J-}
 Please report it as a compiler bug to [EMAIL PROTECTED]
 
 Hope this helps.
 
 
 Regards,
 
 
 Marc [Add SPAM to my e-mail address if you don't want to send me mail.]