ghci 7.4.1 no longer loading .o files?

Evan Laforge qdunkan at gmail.com
Mon Feb 20 07:46:33 CET 2012


Is there something that changed in 7.4.1 that would cause it to decide
to interpret .hs files instead of loading their .o files?  E.g.:

% ghc -c T.hs
% ghci
GHCi, version 7.4.1: http://www.haskell.org/ghc/  :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package filepath-1.3.0.0 ... linking ... done.
Prelude> :l T
[1 of 1] Compiling T                ( T.hs, interpreted )
Ok, modules loaded: T.
*T>

Versus how this works with 7.0.3:

% ghc-7.0.3 -c T.hs
% ghci-7.0.3
GHCi, version 7.0.3: http://www.haskell.org/ghc/  :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package ffi-1.0 ... linking ... done.
Loading package filepath-1.2.0.0 ... linking ... done.
Prelude> :l T
Ok, modules loaded: T.
Prelude T>

It makes a big difference when ghci decides to go interpret 100 files
vs just sucking in the .o files.

This is OS X, 10.6.8.  Anyone else see this?



More information about the Glasgow-haskell-users mailing list