[GHC] #3615: GHCi doesn't allow the use of imported data contructors

GHC trac at galois.com
Thu Nov 5 12:00:05 EST 2009


#3615: GHCi doesn't allow the use of imported data contructors
--------------------------------+-------------------------------------------
    Reporter:  blamario         |        Owner:         
        Type:  feature request  |       Status:  new    
    Priority:  normal           |    Milestone:  _|_    
   Component:  GHCi             |      Version:  6.10.4 
    Severity:  minor            |   Resolution:         
    Keywords:                   |   Difficulty:  Unknown
    Testcase:                   |           Os:  Linux  
Architecture:  x86              |  
--------------------------------+-------------------------------------------
Comment (by isaacdupree):

 this idea is possibly even worse than Duncan's, but:

 In simonpj's example, do inline 'f' because it's only used once -- but
 ALSO keep a copy of it, so that ghci people can at least call it.

 If that leads to bloat in even the compiled code, here is an even-weirder
 idea: keep a separate .hi and .o file for the stuff that's accessible from
 within the module (perhaps excluding the stuff that's exported, since it's
 in the other hi/o files that we already make)

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


More information about the Glasgow-haskell-bugs mailing list