X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=README.html;h=009bd00a3ec8e895d684c2b148732be465b5b17f;hb=b003f4793d7c5d5dc60bbdfb6757c9fbec509b68;hp=7bffdaa8d1e090570dc1fd0cebb1d75d9d42f768;hpb=a24758c516142d460d7302da070a2443cd713f29;p=advent-of-code-16.git diff --git a/README.html b/README.html index 7bffdaa..009bd00 100644 --- a/README.html +++ b/README.html @@ -17,14 +17,19 @@ <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 the <code>MissingH</code> and <code>Parsec-number</code> 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</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>