#1789: New warning: missing import lists
-------------------------------+--------------------------------------------
Reporter: simonmar | Owner:
Type: task | Status: new
Priority: normal | Milestone: 6.10 branch
Component: Compiler | Version: 6.6.1
Severity: normal | Keywords:
Difficulty: Moderate (1 day) | Os: Unknown
Testcase: | Architecture: Unknown
-------------------------------+--------------------------------------------
Import lists are useful when importing from a package, because they
insulates the client from possible name-clashes caused by additions to the
package. There are also some good reasons ''not'' to use import lists;
see [wiki:Commentary/CodingStyle].
For those that want to use import lists, we should have a warning that
identifies imports with missing import lists, perhaps for package imports
only. Note that
{{{
import M (T(..))
}}}
Qualifies as an insufficiently specific import list; the sub-names of `T`
should be specified.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1789>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs