Pulled changes from day11-astar branch
authorNeil Smith <neil.git@njae.me.uk>
Wed, 14 Dec 2016 22:52:53 +0000 (22:52 +0000)
committerNeil Smith <neil.git@njae.me.uk>
Wed, 14 Dec 2016 22:52:53 +0000 (22:52 +0000)
.gitignore
README.html
README.md

index 3200a6ee4064084ec36c96dafdfa06ecb06727d8..b1c703b3534ca3f83112110dfda06404b7daa38e 100644 (file)
@@ -36,3 +36,5 @@ cabal.project.local
 # Logs
 *.log
 
+# KDE
+.directory
index 1ece8ec72e6c9e5f3d7e30456c23e11d35d05f03..009bd00a3ec8e895d684c2b148732be465b5b17f 100644 (file)
 <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>
index a4e1d71cbfeebd5a53a84a186e9f79c7e0ea12b6..5663158d2c8e117d5d580f44233e16e1c86243ec 100644 (file)
--- 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