[nhc-bugs] Renaming bug?
Mark Tehver
mark@eeter.fi.tartu.ee
Thu, 16 Aug 2001 11:03:35 +0300 (EEST)
Hi,
I am resending the following bug report. It was first reported under NHC
1.02 but seems to be still present in NHC 1.06.
I got following error:
====================================
Error when renaming::
Unbound Identifier a0 at 4:44
... (lots of internal compiler state lines)
under NHC 1.02 cygwin (win2k), although I think the program that caused
this is correct. The program consists of 2 small files:
File Test1.hs:
---
module Test1(fn) where
import Test2
fn :: Test -> Int
fn t@(Test { a0 = a } ) = a0 t + a
---
File Test2.hs:
---
module Test2(Test(..)) where
data Test = Test { a0 :: Int, b0 :: Int }
--
I compiled Test2.hs with "nhc98 -c Test2.hs" and then tried to compile
Test1.hs and got this error.
Best regards,
Mark