[nhc-bugs] Renaming bug?

Mark Tehver mark@eeter.fi.tartu.ee
Fri, 18 May 2001 14:43:35 +0300 (EEST)


Hello,

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