14 lines
230 B
Plaintext
14 lines
230 B
Plaintext
|
#!/usr/bin/env bash
|
||
|
|
||
|
set -e
|
||
|
|
||
|
case "$(uname)" in
|
||
|
"Darwin") svg_open="open";;
|
||
|
*) svg_open="firefox";;
|
||
|
esac
|
||
|
|
||
|
cabal build mem --enable-profiling -w ghc-8.10.1
|
||
|
"$(fd '^mem$' -t x -I)" +RTS -h
|
||
|
hp2pretty mem.hp
|
||
|
$svg_open mem.svg
|