[nhc-bugs] Error reading interface files

Joe English jenglish@flightlab.com
Wed, 07 Nov 2001 10:31:49 -0800


Hello,

There seems to be a problem with the .hi file writer and/or parser
in nhc98 (v1.10, 2001-10-19).  The following test case demonstrates
the problem:

-- File: Arrow.hs

module Arrow where
class Arrow a where
    arr :: (x -> y) -> a x y
instance Arrow (->) where	{- This is the problem spot -}
    arr = id

-- END of Arrow.hs

-- File: Test.hs

module Main where
import Arrow
main :: IO ()
main = return ()

-- END of Test.hs

Arrow.hs compiles OK, but Test.hs does not:

| % nhc98 -c Test.hs
|
| Fail: In file ./Arrow.hi:
| 4:17 Found (Prelude.->) but expected a )


--Joe English

  jenglish@flightlab.com