[Haskell-cafe] GHC RTS question

Felipe Lessa felipe.lessa at gmail.com
Sun Feb 21 11:05:08 EST 2010


On Sun, Feb 21, 2010 at 05:45:22PM +0200, Artyom Kazak wrote:
> Hello everybody!
> I want to write a little program, that will receive a string as command-line
> argument and write it in the file. But if this string contains '+RTS', GHC
> runtime won't pass the rest of the string to my program.
> What can I do to avoid this?

Use -RTS, as in

$ ghc -V
The Glorious Glasgow Haskell Compilation System, version 6.10.4

$ ghc +RTS -V
ghc: no input files
Usage: For basic information, try the `--help' option.

$ ghc +RTS -RTS -V
The Glorious Glasgow Haskell Compilation System, version 6.10.4

--
Felipe.


More information about the Haskell-Cafe mailing list