[Haskell-cafe] GHC 7.0.1 developer challenges

Edward Z. Yang ezyang at MIT.EDU
Thu Nov 25 13:50:06 CET 2010

Hello John,

Arguably the correct thing to do is to use GHC's hooks for
programatically specifying runtime options; unfortunately, because
this has to run /before/ any Haskell code starts, it's a bit
unwieldly: essentially you'll need a C stub file that scribbles
the correct options into char *ghc_rts_opts, and then fires up
the Haskell runtime.  If you can get away with having it static
(i.e. make the recommendation baked in by default), I think just
having the C file in your build will be sufficient.


More information about the Haskell-Cafe mailing list