#5778: GHCi won't load compiled object files outside of a package
---------------------------+------------------------------------------------
Reporter: lpsmith | Owner:
Type: bug | Status: closed
Priority: normal | Milestone:
Component: GHCi | Version: 7.4.1-rc1
Resolution: invalid | Keywords:
Os: Linux | Architecture: x86_64 (amd64)
Failure: None/Unknown | Difficulty: Unknown
Testcase: | Blockedby:
Blocking: | Related:
---------------------------+------------------------------------------------
Comment(by simonmar):
Admittedly we didn't do a full audit of the flags to see where we could be
more relaxed, but apart from the fact that it would be time-consuming and
error prone to do that, the current implementation can't handle the
requirement that *adding* ViewPatterns is (probably) safe but *removing*
it is not. That's because we just take a hash of the flags and store that
in the interface file.
I understand the problem - having some extensions on in GHCi by default is
quite handy, but you don't want that to cause recompilation of files that
you've already compiled. I think the right fix for that would be to
separate the flags that are in use at the GHCi prompt from those that are
used when loading source files: see #3217. I'm going to bump the priority
of that ticket, now that dealing with it is more pressing.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5778#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs