GHCi never loads compiled files
问题 Write a module: module Foo where foo = 3.14 Compile it: ghc -c Foo.hs Load it: ghci -ignore-dot-ghci GHCi, version 7.8.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. Prelude> :l Foo [1 of 1] Compiling Foo ( Foo.hs, interpreted ) Ok, modules loaded: Foo. Why won't GHCi pick up compiled code? Is it a bug in GHCi? I tried to run with -v , not too helpful. Update