14 lines
230 B
Bash
Executable File
14 lines
230 B
Bash
Executable File
#!/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
|