Forwarding of GHC runtime system options (useful for profiling) #12

Merged
merged 3 commits into from Jul 26, 2012

Conversation

Projects
None yet
2 participants
@mgajda

mgajda commented Jul 16, 2012

Closes #11.

Forwarding GHC runtime system arguments.

Normally GHC runtime system arguments are
processed before the program, and invisible to
System.Environment.getArgs.

We use GHC.Environment.getFullArgs to forward them,
and add an option rtsOptsHandling to describe
whether they should be appended by any other, or replaced
during relaunch.

I bumped the version number, since this seems to be a significant feature (at least for people interested in seamless profiling.)

Michal J. Gajda added some commits Jul 16, 2012

Michal J. Gajda
Forwarding GHC runtime system arguments.
Normally GHC runtime system arguments are
processed before the program, and invisible to
System.Environment.getArgs.

We use GHC.Environment.getFullArgs to forward them,
and add an option rtsOptsHandling to describe
whether they should be appended by any other, or replaced
during relaunch.
Michal J. Gajda
New option in Params to prevent name shadowing.
By default Dyre included current directory in the list of include dirs.
It causes a problem when running configurable program in its own project
directory (particularly natural for an editor.)

This patch adds an option includeCurrentDirectory that stops it from
happening, if set to False. Behaviour is unchanged by default.

willdonnelly added a commit that referenced this pull request Jul 26, 2012

Merge pull request #12 from mgajda/master
Forwarding of GHC runtime system options (useful for profiling)

@willdonnelly willdonnelly merged commit 7d044d0 into willdonnelly:master Jul 26, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment