[Haskell-cafe] GHC RTS question
Anthony Cowley
acowley at seas.upenn.edu
Sun Feb 21 14:15:00 EST 2010
On Sun, Feb 21, 2010 at 1:58 PM, Artyom Kazak <artyom.kazak at gmail.com> wrote:
> So, if I type "./prog +RTS --RTS +RTS", the output will be "+RTS". But
> I want the output to be equal to the input IN ALL CASES, without any
> quotes, additional options, etc. I want all the command line to go to
> my program. How can I do it? (The only way I know now - hacking the
> GHC. If there are no other ways, I'll do it.)
How about a wrapper script? Something like,
#! /usr/bin/env bash
./prog --RTS $*
Just use that as the front-end to your Haskell program.
Anthony
More information about the Haskell-Cafe
mailing list