[Haskell-cafe] A quick poll about GHC's -with-rtsopts flag
ietf-dane at dukhovni.org
Thu Apr 30 18:11:51 UTC 2020
On Thu, Apr 30, 2020 at 04:21:47PM +0200, Merijn Verstraaten wrote:
> 1) Aware that multiple invocations of -with-rtsopts clobber each other, and
> 2) Actually relies on this behaviour?
Haven't thought about it, but this may makes sense, when configuring
options in more than one file, e.g. foo.cabal, and stack.yaml, and
whichever precedence, should probably be definitive. Likely cumulative
behaviour would be more surprising.
[ Based on the assumption that GHC options in stack.yaml are in addition
to the component-specific options in the cabal file. ]
The name is plural, so takes all the options at once. There could be
new options to incrementally modify the list of rtsopts:
assuming there's a sensible way to accumulate these.
More information about the Haskell-Cafe