#11069: :cd in GHCi unloads modules -------------------------------------+------------------------------------- Reporter: mgsloan | Owner: Type: bug | Status: new Priority: low | Milestone: Component: GHCi | Version: 7.10.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: Other | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by goldfire): Replying to [comment:1 thomie]:
How about removing any dependency in GHC on the current working directory, and instead store it when the session is initialized?
Go ahead. GHCi is just as unmaintained as hpc, so it's all yours to fix.
Whoa. I don't think of GHCi as unmaintained. The debugger in GHCi is regrettably unmaintained. But the rest of it gets active work, no? And I don't agree with the proposed change. I may be an exception to the normal Haskell workflow, but I do most of my work in GHCi without reference to a cabalized package. (Usually, I'm just testing different constructs, not building a project intended for release.) I use `:cd` and expect it to change my working directory used for finding modules. If I understand correctly, the proposed change would eliminate this workflow. (I do find it annoying that all my modules get unloaded when I move directories, as that's not always my intent.) So I think a bit of a larger discussion is in order before making this breaking change. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11069#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler