<p>or</p>
<pre><code>stack ghci advent01:exe:advent01</code></pre>
<p>if the first form is ambiguous.</p>
+<h2 id="profiling">Profiling</h2>
<p>To profile, use</p>
<pre><code>cabal run advent01 --enable-profiling -- +RTS -N -p -s -hT</code></pre>
<p>Or, you can simplify the RTS options by adding them to a new stanza in the cabal file:</p>
<pre><code>cabal run advent01prof --enable-profiling</code></pre>
<p>Generate the profile graph with</p>
<pre><code>hp2ps -M advent01.hp</code></pre>
-<p>For Cabal, look at <a href="https://nikita-volkov.github.io/profiling-cabal-projects/">profiling with Cabal sandboxes</a></p>
<h1 id="packages">Packages</h1>
<p>Packages I used a lot:</p>
<ul>
```
if the first form is ambiguous.
+## Profiling
+
To profile, use
```
hp2ps -M advent01.hp
```
-For Cabal, look at [profiling with Cabal sandboxes](https://nikita-volkov.github.io/profiling-cabal-projects/)
-
# Packages