<pre><code>$ sudo aptitude install haskell-platform haskell-stack</code></pre>
<p>).</p>
<p>I have one package for each day, to save time waiting for Stack to check every executable before compiling what's changed. Each package needs a separate directory tree and a separate <code>.cabal</code> file.</p>
+<p>To work on a project, <code>cd</code> into that project's directory.</p>
<p>Compile with</p>
<pre><code>stack build</code></pre>
<p>or</p>
<p>Run interactively with</p>
<pre><code>stack ghci adventofcode1601:exe:advent01</code></pre>
<p>To profile, use</p>
-<pre><code>stack build --executable-profiling --library-profiling -ghc-options="-fprof-auto -rtsopts" adventofcode1601</code></pre>
+<pre><code>stack build --executable-profiling --library-profiling --ghc-options="-fprof-auto -rtsopts" adventofcode1601</code></pre>
<p>then run with</p>
<pre><code>stack exec -- advent01 +RTS -p -hy</code></pre>
<h1 id="readme">Readme</h1>
I have one package for each day, to save time waiting for Stack to check every executable before compiling what's changed. Each package needs a separate directory tree and a separate `.cabal` file.
+To work on a project, `cd` into that project's directory.
+
Compile with
```
stack build
To profile, use
```
-stack build --executable-profiling --library-profiling -ghc-options="-fprof-auto -rtsopts" adventofcode1601
+stack build --executable-profiling --library-profiling --ghc-options="-fprof-auto -rtsopts" adventofcode1601
```
then run with
```