X-Git-Url: https://git.njae.me.uk/?p=advent-of-code-19.git;a=blobdiff_plain;f=README.md;h=ba5265bc3c9b7d778e1c56d56fc8307e6fac5f19;hp=d5207a3c26d61f575b171688fbeab533d43b20ae;hb=3c8880f27a53ab063886a0b19b665c85155cbaf2;hpb=806af597077178544c39ffbe022a1a666de1676f diff --git a/README.md b/README.md index d5207a3..ba5265b 100644 --- a/README.md +++ b/README.md @@ -61,14 +61,19 @@ Run interactively with ``` stack ghci advent01 ``` +or +``` +stack ghci advent01:exe:advent01 +``` +if the first form is ambiguous. To profile, use ``` -stack build --executable-profiling --library-profiling --ghc-options="-fprof-auto -rtsopts" +stack build --executable-profiling --library-profiling --ghc-options="-fprof-auto -rtsopts" advent01 ``` then run with ``` -stack exec -- advent01 +RTS -p -hy +stack exec --profile -- advent01 +RTS -p -hy ``` Generate the profile graph with ```