Ananda Amatya <[EMAIL PROTECTED]> writes:

> I have a simple question.
> How do I go about making ghc ouput the number of reductions when
> evaluating a haskell program (something like /count in Miranda)?
> Can someone help me, please.

There's nothing directly equivalent to reduction counts in GHC,
although there are a variety of statistics you can get from running
programs:

        * +RTS -s  gives GC statistics
        * cost centre profiling for heap/time statistics
        * ticky-ticky profiling gives details counts of various
          operations performed by a program.

Take a look at the Users Guide for more details.

Cheers,
        Simon

-- 
Simon Marlow                                             [EMAIL PROTECTED]
University of Glasgow                       http://www.dcs.gla.ac.uk/~simonm/
finger for PGP public key

Reply via email to