X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=README.md;h=5663158d2c8e117d5d580f44233e16e1c86243ec;hb=94acd6cb30c5ef1b1b6f364da9f91e2e00618bf8;hp=5c7f379a22baa53e2a9673e7b95e1cf955897635;hpb=fef438e522205404e0e765414e412ccacc34bfaa;p=advent-of-code-16.git diff --git a/README.md b/README.md index 5c7f379..5663158 100644 --- a/README.md +++ b/README.md @@ -13,11 +13,13 @@ $ sudo aptitude install haskell-platform ``` ). -I'm also using the `MissingH` library (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-numbers +$ cabal install cryptonite +$ cabal install pqueue ``` -) Compile the code with ``` @@ -29,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