Hack to turn the profiling output into the format suitable for FlameGraph.
(Click it, it's “interactive”.)
some-program +RTS -P
wget https://github.com/brendangregg/FlameGraph/raw/master/flamegraph.pl
chmod +x flamegraph.pl
flamingra some-program.prof | ./flamegraph.pl picturesque.svg
flamingra out.prof | …
or
… | flamingra | …
where out.prof is @-P@ profiling output.