X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=README.html;h=09672cf9c2a342a0b6d12736fcb8dd76ea5cd0e3;hb=331065b673178f48eb018306115ed9c64c286f53;hp=dd8744b070a5ed6d51a9133c11a0a9e8dc581d16;hpb=50e8668a3cc39a2bdcfdb7d13b506263307e5f45;p=advent-of-code-19.git diff --git a/README.html b/README.html index dd8744b..09672cf 100644 --- a/README.html +++ b/README.html @@ -12,7 +12,7 @@ <div id="header"> <h1 class="title">Advent of Code 2019</h1> </div> -<p>Code to solve the <a href="http://adventofcode.com/2019/">Advent of Code</a> puzzles. This year, I'm using the puzzles to develop my skills in <a href="https://wiki.haskell.org/Haskell">Haskell</a>.</p> +<p>Code to solve the <a href="http://adventofcode.com/2019/">Advent of Code</a> puzzles. This year, I'm using the puzzles to develop my skills in <a href="https://wiki.haskell.org/Haskell">Haskell</a>. I'm writing up a <a href="https://work.njae.me.uk/tag/advent-of-code/">commentary on these puzzles and my solutions</a> on my blog.</p> <p><a href="http://learnyouahaskell.com/chapters">Learn you a Haskell</a>, <a href="https://www.haskell.org/tutorial/index.html">Introduction to Haskell 98</a>, and <a href="https://hackage.haskell.org/">Hackage</a> are good resources.</p> <p>The <a href="https://docs.haskellstack.org/en/stable/README/">Stack documentation</a> and <a href="http://howistart.org/posts/haskell/1/">How I Start: Haskell</a> are good sources of using the tools.</p> <h1 id="toolchain">Toolchain</h1> @@ -43,9 +43,9 @@ <pre><code>stack ghci advent01:exe:advent01</code></pre> <p>if the first form is ambiguous.</p> <p>To profile, use</p> -<pre><code>stack build --executable-profiling --library-profiling --ghc-options="-fprof-auto -rtsopts"</code></pre> +<pre><code>stack build --executable-profiling --library-profiling --ghc-options="-fprof-auto -rtsopts" advent01</code></pre> <p>then run with</p> -<pre><code>stack exec -- advent01 +RTS -p -hy</code></pre> +<pre><code>stack exec --profile -- 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>