To use the GHC profiler: make distclean make templates runhaskell Setup.hs configure --enable-library-profiling --enable-executable-profiling runhaskell Setup.hs build dist/build/pandoc/pandoc +RTS -p -RTS [file]... less pandoc.prof