GHC-4.01 made quite some progress: Today's version was able to
bootstrap itself and some other tests were successful, too, including
some "foreign imports". But here are some minor bugs:
-----------------------------------------------------------------
module Blah(f) where
import Complex
data Mumble = Wurble
instance Eq Mumble where (==) = iAmReallyUsed
iAmReallyUsed :: Mumble -> Mumble -> Bool
iAmReallyUsed Wurble Wurble = True
f :: Complex Int -> Int
f x = 42
f (1 :+ 2) = 3
-----------------------------------------------------------------
panne:/tmp > ghc -Wall -c Blah.hs
<NoSrcLoc>: Warning: `x' is bound but not used
Blah.hs:10: Warning: `iAmReallyUsed' is bound but not used
Blah.hs:13:
Pattern match(es) are overlapped in the definition of function `f'
(:+ 1 2) = ...
-----------------------------------------------------------------
Without a line number, the first warning is not very helpful in a large
program. The second warning is plainly wrong and in the third one
the infix constructor application is printed wrong.
Furthermore, the Perl driver ghc and the executable hsc disagree in the
options they accept, e.g. -H vs -M.
BTW, it would be nice if the warnings/error messages were sorted by
line numbers.
Cheers,
Sven
--
Sven Panne Tel.: +49/89/2178-2235
LMU, Institut fuer Informatik FAX : +49/89/2178-2211
LFE Programmier- und Modellierungssprachen Oettingenstr. 67
mailto:[EMAIL PROTECTED] D-80538 Muenchen
http://www.pms.informatik.uni-muenchen.de/mitarbeiter/panne