From: Neil Smith Date: Sat, 23 Nov 2019 17:46:32 +0000 (+0000) Subject: Updated readme X-Git-Url: https://git.njae.me.uk/?a=commitdiff_plain;h=8b3ec6b30c9bafdc6d5af870c64e0793e60056a9;p=advent-of-code-18.git Updated readme --- 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

diff --git a/README.md b/README.md index f9bb2e1..f55e9a1 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,11 @@ 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