make ghci look for the files made by -dynamic-too
If I compile with -dynamic-too
, ghci still re-interprets the source code instead of finding the Test.dyn_o
file.
$ inplace/bin/ghc-stage2 -O1 -dynamic-too -c Test.hs
$ inplace/bin/ghc-stage2 --interactive Test
GHCi, version 7.7.20130710: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
[1 of 1] Compiling Test ( Test.hs, interpreted )
Ok, modules loaded: Test.
*Test>
I'm guessing that ghci sees the .o
file isn't suitable for dynamic loading and then falls-back to the interpreter without first checking for the .dyn_o
file.
ghci loads Test.o
as expected if I instead compile with -dynamic
.
I'm on OS X 64-bit, if that might matter.
Trac metadata
Trac field | Value |
---|---|
Version | 7.7 |
Type | FeatureRequest |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | GHCi |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |