Subscribe to
Posts
Comments

And has prettier charts, too, thanks to a patch from Tim Docker.

If you already have criterion installed:

$ cabal update
$ cabal install --reinstall criterion

If you want to use criterion on a Mac:

$ cabal update
$ cabal install criterion -f-chart

Alas, on OS X, you’ll lack the ability to directly generate pretty chart images, but criterion will still output CSV files for you. You can import these into gnuplot or your favourite spreadsheet with ease, and chart away from there.

4 Responses to “New criterion release works on Macs”

  1. on 30 Sep 2009 at 23:47Thomas Drake

    Oh thank goodness. I’ve been feeding cabal extra-*-dirs flags a million different ways in the past 24 hours. Many thanks!

  2. on 01 Oct 2009 at 04:46Duncan Coutts

    The –reinstall isn’t required, since it’s a new version, not reinstalling the same version.

    On any machine (not just OSX) the -f-chart is for the case that you can’t or won’t install gtk2hs.

  3. on 01 Oct 2009 at 12:55Bryan O'Sullivan

    Duncan, thanks for the correction and elaboration!

  4. on 01 Oct 2009 at 14:14John Lato

    Note that if you really want pretty charts on a Mac, you can manually edit your package.conf file to add /opt/local/lib (or wherever libgthread is installed) to the appropriate libraries. That worked for me.

    Of course, you could also really mess up your Haskell installation if you aren’t careful.

Leave a Reply