Only some minor things (at least for now >:-)   :

   * ghc -cpp -M (i.e. mkdependHS) does not remove the *.i files

   * warnings about unused names are often bogus, e.g. in the
     following fragment of a Lx-generated scanner:

----------------------------------------------------------------------
module Foo(Token(..), scanner') where

import Scan(load_scan, scan)

data Token = TokenStart

scanner' :: Monad m => String -> m [Token]
scanner' c = return $ scanner c

scanner :: String -> [Token]
scanner = scan (load_scan ([], undefined) table)

table :: [(Bool, [(Int,String,[Int],[((Char,Char),[(Char,Bool)])],[Int])], Int, 
((Char,Char),[(Char,Int)]))]
table = []
----------------------------------------------------------------------
ghc -cpp -O -H15M -recomp -Wall   -c Foo.hs -o Foo.o
 
Foo.hs:1: Warning:
    The following names are unused: table, defined at Foo.hs:14
 
Foo.hs:1: Warning:
    The following names are unused:
        load_scan, imported from Scan at Foo.hs:3

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

Reply via email to