Removed needless directory
[advent-of-code-16.git] / README.md
1 ---
2 title: "Advent of Code 2016"
3 output: html_document
4 css: modest.css
5 ---
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).
7
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.
9
10 I'm using the basic Haskell Platform installation (install with
11 ```
12 $ sudo aptitude install haskell-platform
13 ```
14 ).
15
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
17 ```
18 $ cabal install MissingH
19 $ cabal install parsec-numbers
20 $ cabal install cryptonite
21 $ cabal install pqueue
22 ```
23
24 Compile the code with
25 ```
26 ghc --make advent01.hs
27 ```
28
29 then run it as
30 ```
31 advent01
32 ```
33
34 If you're profiling, compile and run with
35 ```
36 ghc -O2 --make advent01.hs -prof -auto-all -caf-all -fforce-recomp -rstopts
37 time ./advent01 +RTS -p -hy
38 ```
39
40 and create the profile picture with `h2ps advent01.hp` .
41
42 Build this readme file wth
43 ```
44 pandoc -s README.md > README.html
45 ```
46
47 (Using the [Modest style](https://github.com/markdowncss/modest).)