Skip to content

Instantly share code, notes, and snippets.

@anwinged
Created March 29, 2019 14:45
Show Gist options
  • Save anwinged/9e4c7ef600e836e5e20d8ec77a3789d8 to your computer and use it in GitHub Desktop.
Save anwinged/9e4c7ef600e836e5e20d8ec77a3789d8 to your computer and use it in GitHub Desktop.
Haskell profiling setup
./ghc --make Main.hs -prof -fprof-auto -rtsopts && ./Main +RTS -p
FROM debian:stretch
RUN apt-get update && apt-get install -y ghc ghc-prof
WORKDIR /app
#!/usr/bin/env bash
set -eux
docker run -it --rm \
--volume "$PWD:/app" \
--workdir "/app" \
haskell-prof \
ghc $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment