
#8579: Loading a module in GHCi affects shadowing ------------------------------------+------------------------------------- Reporter: monoidal | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Keywords: | Operating System: Unknown/Multiple Architecture: Unknown/Multiple | Type of failure: None/Unknown Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ------------------------------------+------------------------------------- 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 }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8579 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler