Top level module identifiers shadow imported identifiers
Let's try this out as a language pragma and see if we like it?
Artificial example:
{-# LANGUAGE TopLevelShadowsImports #-}
import Data.Monoid
(<>) = mappend
main = putStrLn ("Hello" <> " " <> "World")
Current behavior: error: ambiguous occurrence of (<>) Desired behavior: uses top-level definition of (<>), prints "hello world"
Trac metadata
Trac field | Value |
---|---|
Version | |
Type | FeatureRequest |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |