From 5a91723e71215afc4c48e48f932e72a32e859094 Mon Sep 17 00:00:00 2001
From: Neil Smith <neil.git@njae.me.uk>
Date: Wed, 14 Dec 2016 22:52:53 +0000
Subject: [PATCH] Pulled changes from day11-astar branch

---
 .gitignore  |  2 ++
 README.html | 12 ++++++++----
 README.md   | 14 +++++++++++---
 3 files changed, 21 insertions(+), 7 deletions(-)

diff --git a/.gitignore b/.gitignore
index 3200a6e..b1c703b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -36,3 +36,5 @@ cabal.project.local
 # Logs
 *.log
 
+# KDE
+.directory
diff --git a/README.html b/README.html
index 1ece8ec..009bd00 100644
--- a/README.html
+++ b/README.html
@@ -17,15 +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 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 &gt; README.html</code></pre>
 <p>(Using the <a href="https://github.com/markdowncss/modest">Modest styles</a>.)</p>
diff --git a/README.md b/README.md
index a4e1d71..5663158 100644
--- a/README.md
+++ b/README.md
@@ -13,13 +13,13 @@ $ sudo aptitude install haskell-platform
 ```
 ).
 
-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
 ```
@@ -31,6 +31,14 @@ then run it as
 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
-- 
2.43.0