repeated import warning

Simon Peyton-Jones simonpj at microsoft.com
Fri Dec 19 05:35:16 EST 2003


Done!  

Simon


Foo.hs:
    Warning: `isJust' is imported more than once:
	       imported from Maybe at Foo.hs:4:16-21
	       imported from Maybe at Foo.hs:3:23-28
	       imported from Maybe at Foo.hs:3:16-21

| -----Original Message-----
| From: glasgow-haskell-bugs-bounces at haskell.org
[mailto:glasgow-haskell-bugs-
| bounces at haskell.org] On Behalf Of Serge D. Mechveliani
| Sent: 18 November 2003 13:36
| To: glasgow-haskell-bugs at haskell.org
| Subject: repeated import warning
| 
| Dear GHC developers,
| 
| What about compiler's warning of repeated import of items?
| For the large import lists this may be useful,
| and  ghc-6.01  seems to lack this:
| 
|   ------------------
|   module T where
|   import Maybe (isJust, isJust)
|   f = isJust
|   ------------------
| 
|   ghc -c T.hs
| 
| 
| -----------------
| Serge Mechveliani
| mechvel at botik.ru
| _______________________________________________
| 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