#3262: Identifiers beginning with _ should not be considered for shadowing
---------------------------------+------------------------------------------
Reporter: batterseapower | Owner:
Type: proposal | Status: closed
Priority: normal | Milestone:
Component: Compiler | Version: 6.10.2
Severity: trivial | Resolution: fixed
Keywords: | Difficulty: Unknown
Testcase: | Os: Unknown/Multiple
Architecture: Unknown/Multiple |
---------------------------------+------------------------------------------
Changes (by simonpj):
* status: new => closed
* difficulty: => Unknown
* resolution: => fixed
Comment:
Good idea. Done
{{{
Thu May 28 16:23:59 BST 2009 [email protected]
* Fix Trac #3262: suppress name-shadow warning for _names
Adopt Max's suggestion for name shadowing, by suppressing shadowing
warnings for variables starting with "_". A tiny bit of refactoring
along the way.
M ./compiler/basicTypes/NameSet.lhs -1 +1
M ./compiler/basicTypes/OccName.lhs -8 +7
M ./compiler/rename/RnEnv.lhs -1 +3
M ./compiler/typecheck/TcInstDcls.lhs -1 +1
M ./docs/users_guide/using.xml +5
}}}
Simon
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3262#comment:1>
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