From: Neil Smith Date: Wed, 14 Dec 2016 22:52:53 +0000 (+0000) Subject: Pulled changes from day11-astar branch X-Git-Url: https://git.njae.me.uk/?p=advent-of-code-16.git;a=commitdiff_plain;h=5a91723e71215afc4c48e48f932e72a32e859094 Pulled changes from day11-astar branch --- 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 @@

I'm using the basic Haskell Platform installation (install with

$ 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 cryptonite
-

)

+$ cabal install parsec-numbers +$ cabal install cryptonite +$ cabal install pqueue

Compile the code with

ghc --make advent01.hs

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

(Using the Modest styles.)

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