confusing "Warning: Imported from"
Simon Peyton-Jones
simonpj at microsoft.com
Thu Nov 2 07:14:04 EST 2006
Good point, thank you. I've fixed this.
(Ian: I'm not certain that the patch will smoothly move to the branch,
but the same idea will apply there.)
* Improve handling of unused imports (test is mod75)
Simon
| -----Original Message-----
| From: glasgow-haskell-bugs-bounces at haskell.org
[mailto:glasgow-haskell-bugs-bounces at haskell.org]
| On Behalf Of Christian Maeder
| Sent: 20 October 2006 13:58
| To: glasgow-haskell-bugs at haskell.org
| Subject: confusing "Warning: Imported from"
|
| line 12 and 13 of my source ATC2.hs
| (http://hackage.haskell.org/trac/ghc/ticket/955)
| are:
|
| > import HsName (HsName(UnQual))
| > import PropPosSyntax
|
| UnQual comes in via PropPosSyntax and HsName but is not used.
|
| However, I would expect a warning for my explicit import of UnQual
from
| HsName. Instead I get:
|
| ATC2.hs:13:0:
| Warning: Imported from `PropPosSyntax' but not used:
| data constructor `UnQual'
|
| Is this a known (or easy to resolve) issue?
|
| Christian
| _______________________________________________
| Glasgow-haskell-bugs mailing list
| Glasgow-haskell-bugs at haskell.org
| http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
More information about the Glasgow-haskell-bugs
mailing list