|
RE: unused import not always reported: msg#00014lang.haskell.glasgow.bugs
I've looked into this a bit. There is certainly something wrong going on in the 5.04 branch. But in fact the way in which we compute usage information has changed significantly in the HEAD, and I'm reluctant to invest much time in finding non-fatal bugs in the branch. I'm pretty sure that the bug lies in code which does not exist in the HEAD (done another way). If this comes up in the HEAD, or in the next release, please let us know. Otherwise I'm going to park this one! Simon | -----Original Message----- | From: Christian Maeder [mailto:maeder@xxxxxx] | Sent: 04 April 2003 17:01 | To: Simon Peyton-Jones | | > I believe that the state of play on this one is that (a) we'd like to | > fix it, but (b) we can't reproduce it without help from you. If you | > send us source code we'll look at it. | | Ok, unfortunately it needs really many sources (and long to compile). | But the sources are world-readable anyway. You'll need the directories | "uni" and "HetCATS" from: | | CVSROOT=:pserver:cvsread@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:/repository | | I'll prepare a skript (and check if the bug still occurs without further | dependencies). | | Christian | | > Thanks | > | > Simon | > | > | -----Original Message----- | > | From: Christian Maeder [mailto:maeder@xxxxxx] | > | Sent: 21 March 2003 15:52 | > | To: glasgow-haskell-bugs@xxxxxxxxxxx | > | | > | How is it possible that an unused import warning is not always | > emitted? | > | | > | Below I get a warning when I recompile everything, but no warning when | > I | > | only recompile the Main module (that contains the unused import). In | > | fact Main.hi changes. | > | | > | Cheers Christian | > | | > | Compiling GUI.ConvertDevToAbstractGraph ( | > | GUI/ConvertDevToAbstractGraph.hs, GUI/ConvertDevToAbstractGraph.o ) | > | Compiling Main ( GUI/hetdg.hs, GUI/hetdg.o ) | > | | > | GUI/hetdg.hs:1: | > | Warning: Module `Data.IORef' is imported, but nothing from it is | > used | > | (except perhaps to re-export instances visible in | > | `Data.IORef') | > | ghc: linking ... | > | maeder@turing:~/haskell/HetCATS> ll GUI/Main.hi | > | maeder@turing:~/haskell/HetCATS> ll GUI/Main.hi | > | -rw-r--r-- 1 maeder wimi 5272 2003-03-21 16:47 | > GUI/Main.hi | > | maeder@turing:~/haskell/HetCATS> rm GUI/Main.hi | > | | > | | > | [omitted the list of Skipping after ghc --make -fglasgow-exts | > | -fwarn-unused-imports ...] | > | | > | Skipping GUI.ConvertDevToAbstractGraph ( | > | GUI/ConvertDevToAbstractGraph.hs, GUI/ConvertDevToAbstractGraph.o ) | > | Compiling Main ( GUI/hetdg.hs, GUI/hetdg.o ) | > | ghc: linking ... | > | maeder@turing:~/haskell/HetCATS> ll GUI/Main.hi | > | -rw-r--r-- 1 maeder wimi 5840 2003-03-21 16:48 | > GUI/Main.hi | > | | > | | > | | > | | > | _______________________________________________ | > | Glasgow-haskell-bugs mailing list | > | Glasgow-haskell-bugs@xxxxxxxxxxx | > | http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs | |
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: interface/newtype/deriving bug, Simon Peyton-Jones |
|---|---|
| Next by Date: | `updateWithIndirection' undeclared, Ralf Hinze |
| Previous by Thread: | Re: unused import not always reported, Christian Maeder |
| Next by Thread: | newtype/deriving/fundep bug in GHC, Ashley Yakeley |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |