X-Git-Url: https://git.njae.me.uk/?p=advent-of-code-18.git;a=blobdiff_plain;f=README.html;fp=README.html;h=50e6922229dcc61b75e233d19ca7e068fbd9d422;hp=8dd29bb3f7a6d5a767254529c2a98f1c1e11877a;hb=8b3ec6b30c9bafdc6d5af870c64e0793e60056a9;hpb=86c404c1f31915fb3ce41a3fc5679cdf001a41b3 diff --git a/README.html b/README.html index 8dd29bb..50e6922 100644 --- a/README.html +++ b/README.html @@ -33,12 +33,16 @@
stack build advent01

Run with

stack exec advent01
+

If you want to pass in additional RTS parameters, do it like this:

+
stack exec -- advent01 +RTS -K0 -RTS

Run interactively with

stack ghci advent-of-code:exe:advent01

To profile, use

-
stack build --executable-profiling --library-profiling --ghc-options="-fprof-auto -rtsopts" adventofcode1601
+
stack build --executable-profiling --library-profiling --ghc-options="-fprof-auto -rtsopts"

then run with

stack exec -- advent01 +RTS -p -hy
+

Generate the profile graph with

+
stack exec hp2ps advent01.hp

Packages

Stack is using the 12.20-lts resolver for packages, so make sure you read the correct documentation for the packages included in it.

When you use a new package, use