Updated readme
[advent-of-code-18.git] / README.html
index 8dd29bb3f7a6d5a767254529c2a98f1c1e11877a..50e6922229dcc61b75e233d19ca7e068fbd9d422 100644 (file)
 <pre><code>stack build advent01</code></pre>
 <p>Run with</p>
 <pre><code>stack exec advent01</code></pre>
+<p>If you want to pass in additional RTS parameters, do it like this:</p>
+<pre><code>stack exec -- advent01 +RTS -K0 -RTS</code></pre>
 <p>Run interactively with</p>
 <pre><code>stack ghci advent-of-code:exe:advent01</code></pre>
 <p>To profile, use</p>
-<pre><code>stack build --executable-profiling --library-profiling --ghc-options=&quot;-fprof-auto -rtsopts&quot; adventofcode1601</code></pre>
+<pre><code>stack build --executable-profiling --library-profiling --ghc-options=&quot;-fprof-auto -rtsopts&quot;</code></pre>
 <p>then run with</p>
 <pre><code>stack exec -- advent01 +RTS -p -hy</code></pre>
+<p>Generate the profile graph with</p>
+<pre><code>stack exec hp2ps advent01.hp</code></pre>
 <h1 id="packages">Packages</h1>
 <p>Stack is using the <a href="https://www.stackage.org/lts-12.20">12.20-lts resolver</a> for packages, so make sure you read the <a href="https://www.stackage.org/lts-12.20/docs">correct documentation for the packages included in it</a>.</p>
 <p>When you use a new package, use</p>