[GHC] #5778: GHCi won't load compiled object files outside of a package

GHC cvs-ghc at haskell.org
Mon Jan 16 16:32:22 CET 2012


#5778: GHCi won't load compiled object files outside of a package
-------------------------------+--------------------------------------------
    Reporter:  lpsmith         |       Owner:              
        Type:  bug             |      Status:  new         
    Priority:  normal          |   Milestone:              
   Component:  GHCi            |     Version:  7.4.1-rc1   
    Keywords:                  |          Os:  Linux       
Architecture:  x86_64 (amd64)  |     Failure:  None/Unknown
  Difficulty:  Unknown         |    Testcase:              
   Blockedby:                  |    Blocking:              
     Related:                  |  
-------------------------------+--------------------------------------------

Comment(by lpsmith):

 After a bit more investigation, the problem is related to my
 {{{ghci.conf}}}:

 {{{
 :set +s
 -- :set -XScopedTypeVariables
 :set prompt "> "
 -- :set -XOverloadedStrings
 -- :a ~/.ghc/env.hs
 }}}

 It loads a compiled module with the abouve ghci.conf,  but if any one of
 the commented lines are uncommented (as they normally are) then ghci will
 interpret fib.hs instead of loading the compiled module.
 {{{~/.ghc/env.hs}}} is

 {{{
 import Data.ByteString.Char8()
 import Data.ByteString.Lazy.Char8()
 import Data.Text()
 import Data.Text.Lazy()
 }}}

 To import the IsString instances into the interactive environment.   (I
 realize this need not be a separate file anymore;  but it was a workaround
 for an older version of GHC.)

 Now,  if I compile with the exact same language extensions as specified in
 my {{{ghci.conf}}},  then it will load the compiled module.  But any
 difference seems to lead to interpretation.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5778#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the Glasgow-haskell-bugs mailing list