Ticket #3503 (closed feature request: wontfix)
Add __attribute__((constructor))-equivalent pragma
Description
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 = ...
Change History
Note: See
TracTickets for help on using
tickets.
