Loading a module in GHCi affects shadowing
In GHCi we can redefine a data declaration; last definition counts. But loading a module has a side effect of bringing the first declaration to front:
λ> data A = X
λ> data A = Y
λ> :i A
data A = Y -- Defined at <interactive>:3:6
λ> :m Data.List
λ> :i A
data A = X -- Defined at <interactive>:2:6
Trac metadata
| Trac field | Value |
|---|---|
| Version | 7.6.3 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |