[GHC] #8579: Loading a module in GHCi affects shadowing
#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
#8579: Loading a module in GHCi affects shadowing -------------------------------------+------------------------------------ Reporter: monoidal | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by Simon Peyton Jones <simonpj@…>): In [changeset:"d00942324c0835d3840c72eb9c9803b2ff36b28a/testsuite"]: {{{ #!CommitTicketReference repository="testsuite" revision="d00942324c0835d3840c72eb9c9803b2ff36b28a" Test Trac #8579 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8579#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8579: Loading a module in GHCi affects shadowing ---------------------------------------+----------------------------------- Reporter: monoidal | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: None/Unknown | Unknown/Multiple Test Case: ghci/scripts/T8579 | Difficulty: Unknown Blocking: | Blocked By: | Related Tickets: ---------------------------------------+----------------------------------- Changes (by simonpj): * status: new => closed * testcase: => ghci/scripts/T8579 * resolution: => fixed Comment: Thanks. Fixed as part of the fix to #8639 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8579#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC