#3503: Add __attribute__((constructor))-equivalent pragma
-----------------------------+----------------------------------------------
Reporter:  pumpkin           |          Owner:                  
    Type:  feature request   |         Status:  new             
Priority:  normal            |      Component:  Compiler        
 Version:  6.11              |       Severity:  minor           
Keywords:                    |       Testcase:                  
      Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
-----------------------------+----------------------------------------------
 It would be nice to let one's library perform initialization tasks at load
 time. Then the integer-gmp allocation functions could be changed from
 within haskell and various other FFI libraries would be easier to bind to.
 As for syntax, maybe something like the following would work?

 {-# CONSTRUCTOR f #-}
 f :: IO ()
 f = ...

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3503>
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