runhaskell a parallel program

Simon Marlow marlowsd at
Fri May 8 03:58:18 EDT 2009

On 07/05/2009 18:12, Brandon S. Allbery KF8NH wrote:
> On May 7, 2009, at 06:27 , Neil Mitchell wrote:
>>>> If however I run it with runhaskell Test.hs +RTS -N2 I get told the
>>>> -N2 flag isn't supported. Is there a way to runhaskell a program on
>>> As a workaround you could use 'ghc -e main foo.hs +RTS -N2'.
>> That works great :-) Perhaps this trick should be documented? I
>> thought runhaskell was just sugar over ghc -e, so couldn't it share
>> the same mechanism?
> I think the problem is that runhaskell invokes the runghc executable in
> the GHC libdir, which is itself a non-threaded Haskell program and
> therefore consumes the RTS options.



More information about the Glasgow-haskell-users mailing list