2 title: "Advent of Code 2016"
6 Code to solve the [Advent of Code](http://adventofcode.com/2016/) puzzles. This year, I'm trying to use the puzzles as a prompt to learn [Haskell](https://wiki.haskell.org/Haskell).
8 [Learn you a Haskell](http://learnyouahaskell.com/chapters), [Introduction to Haskell 98](https://www.haskell.org/tutorial/index.html), and [Hackage](https://hackage.haskell.org/) are good resources.
10 I'm using the basic Haskell Platform installation (install with
12 $ sudo aptitude install haskell-platform
16 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
18 $ cabal install MissingH
19 $ cabal install parsec-numbers
20 $ cabal install cryptonite
21 $ cabal install pqueue
26 ghc --make advent01.hs
34 If you're profiling, compile and run with
36 ghc -O2 --make advent01.hs -prof -auto-all -caf-all -fforce-recomp -rstopts
37 time ./advent01 +RTS -p -hy
40 and create the profile picture with `h2ps advent01.hp` .
42 Build this readme file wth
44 pandoc -s README.md > README.html
47 (Using the [Modest style](https://github.com/markdowncss/modest).)