
7 Nov
2001
7 Nov
'01
6:31 p.m.
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