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

GHC trac at galois.com
Fri Oct 30 08:36:36 EDT 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 duncan):

 It should be possible in principle to provide an explanation in this case,
 something like "Constructor `D' is not exported from module `M'. To get
 access to the internals you can reload the module in interpreted mode
 using :set -fobject-code and :reload"

 The names of the internal things would have to be recorded in the .hi file
 for this to be possible (even if there's no corresponding object code
 since it all got inlined away). Of course it may not be trivial to keep
 this info.

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


More information about the Glasgow-haskell-bugs mailing list