added stack support

This commit is contained in:
Stephen Diehl 2015-11-26 19:16:46 -05:00
parent c536b30c9a
commit 142b1628a9
3 changed files with 16 additions and 0 deletions

1
.gitignore vendored
View File

@ -11,3 +11,4 @@ includes
*.agdai
*.history
Setup.hs
.stack-work

View File

@ -63,6 +63,8 @@ Building
To generate the build scripts provision a cabal sandbox with pandoc in it. This
is done by the ``write-you-a-haskell.cabal`` file.
**Cabal**
```bash
$ cabal sandbox init
$ cabal install --only-dependencies
@ -70,6 +72,13 @@ $ cabal exec bash
$ make
```
**Stack**
```bash
$ stack exec bash
$ make
```
To make the generate the pdf, the LaTeX packages must be installed on the
system.

6
stack.yaml Normal file
View File

@ -0,0 +1,6 @@
resolver: lts-2.22
packages:
- '.'
extra-deps: []
flags: {}
extra-package-dbs: []