[Haskell-cafe] how to turn on RTS options?

Carter Schonwald carter.schonwald at gmail.com
Sun Jul 6 16:54:44 UTC 2014

Try doing a cabal clean? Also are you setting that for an executable or a
library? Only makes sense on an executable

On Sunday, July 6, 2014, Johan Larson <johan.g.larson at gmail.com> wrote:

> I need to change some runtime options.
> I updated the options line in my cabal file:
>   ghc-options:         -Wall -fno-warn-orphans -O2 -rtsopts
> But when I rebuild and run, it's as though runtime options are still
> disabled.
> C:\johan\Haskell\projects\bio-acai>cabal build
> .\bio-acai.cabal has been changed. Re-configuring with most recently used
> options. If this fails, please run configure manually.
> Resolving dependencies...
> Configuring bio-acai-
> Building bio-acai-
> Preprocessing executable 'acai' for bio-acai-
> Preprocessing test suite 'tests' for bio-acai-
> C:\johan\Haskell\projects\bio-acai>dist\build\acai\acai.exe +RTS -H128m
> -K64m
> *acai.exe: Most RTS options are disabled. Link with -rtsopts to enable
> them.*
> My best guess is that the "ghc-options" line is the wrong place to try to
> turn on RTS option handling. But what's the right one?
> --
> Johan Larson -- Toronto, Canada
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140706/9ca7a1f5/attachment.html>

More information about the Haskell-Cafe mailing list