From 5a91723e71215afc4c48e48f932e72a32e859094 Mon Sep 17 00:00:00 2001 From: Neil Smith 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 @@

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 -- 2.34.1