X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=README.md;h=2e4886ca28d1928ef768353217ce845fb803e444;hb=b66f0f79e01057fcb153ac16ce13ff50943a6d02;hp=9fa57694a2f05e1ef846ed9f8f365a003b09484c;hpb=a24758c516142d460d7302da070a2443cd713f29;p=advent-of-code-16.git diff --git a/README.md b/README.md index 9fa5769..2e4886c 100644 --- a/README.md +++ b/README.md @@ -13,12 +13,13 @@ $ sudo aptitude install haskell-platform ``` ). -I'm also using the `MissingH` and `Parsec-number` 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 ``` @@ -30,9 +31,17 @@ 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 -rstopts +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](https://github.com/markdowncss/modest).) \ No newline at end of file +(Using the [Modest style](https://github.com/markdowncss/modest).) \ No newline at end of file