|
[ ghc-Bugs-1205825 ] Incorrect "Defined but not used": msg#00094lang.haskell.glasgow.bugs
Bugs item #1205825, was opened at 2005-05-20 11:04 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1205825&group_id=8032 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Compiler Group: 6.4 Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Incorrect "Defined but not used" Initial Comment: This is johndetr@xxxxxxxxxxxxxx When I compile the following function: 150 hexArg :: P Hex 151 hexArg = do MyState i n <- getState 152 let i = i + 1 153 setState (MyState i n) 154 x <- hexNumber 155 if i < n then do { char ','; return () } 156 else do { char ')'; eof } 157 return x I get the following messages: Vesta.hs:151:20: Warning: Defined but not used: `i' Vesta.hs:152:16: Warning: This binding for `i' shadows an existing binding In the binding group for: i The second is correct, if course, but the first is not. If I change the new binding to i' instead of i (and the references below, of course) *both* messages go away! Please let me know if you'd like more information, a shorter error case, etc. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1205825&group_id=8032
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [ ghc-Bugs-1205210 ] :i wrongly claims "Imported from ...", SourceForge.net |
|---|---|
| Next by Date: | the impossible happened, Frederik Eaton |
| Previous by Thread: | [ ghc-Bugs-1205611 ] Too many seq's (in external core), SourceForge.net |
| Next by Thread: | [ ghc-Bugs-1205825 ] Incorrect "Defined but not used", SourceForge.net |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |