From c069ea587e52c435b4903271f3f9e287e9afe4a4 Mon Sep 17 00:00:00 2001
From: Diogo Biazus <diogob@gmail.com>
Date: Thu, 11 Feb 2016 10:37:03 -0500
Subject: [PATCH] Adds stack.yml and section about how to build using it to
README.
---
README.md | 5 +++++
stack.yaml | 35 +++++++++++++++++++++++++++++++++++
2 files changed, 40 insertions(+)
create mode 100644 stack.yaml
diff --git a/README.md b/README.md
index 0ec8444..a144e51 100644
--- a/README.md
+++ b/README.md
@@ -82,6 +82,11 @@ it will log in when making (most) API requests.
Anyway, github-backup *does* do an incremental backup, picking up where it
left off, so will complete the backup eventually even if it's rate limited.
+## Contributing
+
+Besides the cabal instalation you can also use [stack](https://www.stackage.org) to build from sources.
+Once you have stack installed just type ```stack build``` in the repo root directory.
+
## Author
github-backup was written by Joey Hess <joey@kitenet.net>
diff --git a/stack.yaml b/stack.yaml
new file mode 100644
index 0000000..80a6239
--- /dev/null
+++ b/stack.yaml
@@ -0,0 +1,35 @@
+# For more information, see: http://docs.haskellstack.org/en/stable/yaml_configuration.html
+
+# Specifies the GHC version and set of packages available (e.g., lts-3.5, nightly-2015-09-21, ghc-7.10.2)
+resolver: lts-5.2
+
+# Local packages, usually specified by relative directory name
+packages:
+- '.'
+
+# Packages to be pulled from upstream that are not in the resolver (e.g., acme-missiles-0.3)
+extra-deps: []
+
+# Override default flag values for local packages and extra-deps
+flags: {}
+
+# Extra package databases containing global packages
+extra-package-dbs: []
+
+# Control whether we use the GHC we find on the path
+# system-ghc: true
+
+# Require a specific version of stack, using version ranges
+# require-stack-version: -any # Default
+# require-stack-version: >= 1.0.0
+
+# Override the architecture used by stack, especially useful on Windows
+# arch: i386
+# arch: x86_64
+
+# Extra directories used by stack for building
+# extra-include-dirs: [/path/to/dir]
+# extra-lib-dirs: [/path/to/dir]
+
+# Allow a newer minor version of GHC than the snapshot specifies
+# compiler-check: newer-minor