<p>I'm using the basic Haskell Platform installation (install with</p>
<pre><code>$ sudo aptitude install haskell-platform</code></pre>
<p>).</p>
-<p>I'm also using some extra libraries (install with</p>
+<p>I'm also using some extra libraries. Before installing, run <code>cabal update</code> then set <code>library-profiling: True</code> in <code>~/.cabal/config</code> . Then install the packages with</p>
<pre><code>$ cabal install MissingH
-$ cabal install parsec-number
-$ cabal install cryptonite</code></pre>
-<p>)</p>
+$ cabal install parsec-numbers
+$ cabal install cryptonite
+$ cabal install pqueue</code></pre>
<p>Compile the code with</p>
<pre><code>ghc --make advent01.hs</code></pre>
<p>then run it as</p>
<pre><code>advent01</code></pre>
+<p>If you're profiling, compile and run with</p>
+<pre><code>ghc -O2 --make advent01.hs -prof -auto-all -caf-all -fforce-recomp
+time ./advent01 +RTS -p -hy</code></pre>
+<p>and create the profile picture with <code>h2ps advent01.hp</code> .</p>
<p>Build this readme file wth</p>
<pre><code>pandoc -s README.md > README.html</code></pre>
<p>(Using the <a href="https://github.com/markdowncss/modest">Modest styles</a>.)</p>
```
).
-I'm also using some extra libraries (install with
+I'm also using some extra libraries. Before installing, run `cabal update` then set `library-profiling: True` in `~/.cabal/config` . Then install the packages with
```
$ cabal install MissingH
-$ cabal install parsec-number
+$ cabal install parsec-numbers
$ cabal install cryptonite
+$ cabal install pqueue
```
-)
Compile the code with
```
advent01
```
+If you're profiling, compile and run with
+```
+ghc -O2 --make advent01.hs -prof -auto-all -caf-all -fforce-recomp
+time ./advent01 +RTS -p -hy
+```
+
+and create the profile picture with `h2ps advent01.hp` .
+
Build this readme file wth
```
pandoc -s README.md > README.html