[Haskell] GHC: Setting default +RTS options at compile time?

Simon Peyton-Jones simonpj at microsoft.com
Fri Mar 18 11:59:51 EST 2005

[Redirecting to GHC users, which is the right place for GHC related

| Is there any way to specify at compile/link time default options for
| program +RTS options?

No.  This is a long-standing feature request.  It makes perfect sense,
but needs someone to design and implement it.  So far not enough people
have yelled loudly enough for us to do it.  Any volunteers?


| <aside>
| Why do I want this?  I'm using GHC to write a program that will be
used by
| non-comp uting people to preprocess some data in conjunction with an
| database file.  To load the database into a Data.Map value requires
| than GHC's default 256Mb of heap, and I'd like to increase the
| default heap size, rather than telling users to use the +RTS -M100M
| as its one less thing to get wrong.  There are of course other
| solutions, but in this case specifying a default heap size at compile
| seems to be the most natural.
| </aside>

More information about the Glasgow-haskell-users mailing list