#3252: having to call hs_add_root(__stginit_Foo) is a bit of a pain
---------------------------------+------------------------------------------
    Reporter:  duncan            |        Owner:              
        Type:  feature request   |       Status:  new         
    Priority:  normal            |    Milestone:  6.14.1      
   Component:  Compiler (FFI)    |      Version:  6.10.2      
    Keywords:                    |   Difficulty:  Unknown     
          Os:  Unknown/Multiple  |     Testcase:              
Architecture:  Unknown/Multiple  |      Failure:  None/Unknown
---------------------------------+------------------------------------------

Comment(by simonmar):

 Yes, the package name and version are omitted when this is the main
 pacakge (the default).  It is possible that different packages use the
 same module name, so it's not possible to use the `__stginit_Foo` form
 when the modules are being built as part of a package.

 We'll put some thought into how to do the initialisation automatically.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3252#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to