|
RFunE: "Unused"ness for warnings transitive in GHC 6.0.1: msg#00031lang.haskell.glasgow.bugs
GHC 5 seemed to warn that a binding was unused if it was never referenced. Now (on 6.0.1) it seems to warn if a binding is never referenced by a used binding. I.e, "used"ness is now transitive. (Neither version warns about bindings with names beginning with '_'.) I like the old behavior much better. I often have unexported bindings (e.g. for testing) with names beginning with '_'. Sometimes these are the exclusive users of imported or locally defined bindings. With the GHC 5, I got no warnings. With GHC 6, I do. Loading the attached file gives me no warnings (with -Wall -fno-warn-missing-signatures -fno-warn-type-defaults) on GHCi 5.04.3. I get several on GHCi 6.0.1. thanks, mike
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: | [ ghc-Bugs-751509 ] TemplateHaskell: panic! (...) nameModule, SourceForge.net |
|---|---|
| Next by Date: | RE: RFunE: "Unused"ness for warnings transitive in GHC 6.0.1, Simon Peyton-Jones |
| Previous by Thread: | [ ghc-Bugs-751509 ] TemplateHaskell: panic! (...) nameModule, SourceForge.net |
| Next by Thread: | RE: RFunE: "Unused"ness for warnings transitive in GHC 6.0.1, Simon Peyton-Jones |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |