Last active
January 29, 2016 16:02
-
-
Save erikkaplun/5ebe7d94139f93a81f42 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For more information, see: https://github.com/commercialhaskell/stack/blob/release/doc/yaml_configuration.md | |
# Specifies the GHC version and set of packages available (e.g., lts-3.5, nightly-2015-09-21, ghc-7.10.2) | |
resolver: ghc-7.10.3 | |
# 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] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# what is the dual of GHCJS_BROWSER? | |
# ghc-options: | |
# "*": -DGHCJS_BROWSER # compile for the browser not Node.js | |
compiler: ghcjs-0.2.0.20151230.3_ghc-7.10.2 | |
compiler-check: match-exact | |
setup-info: | |
ghcjs: | |
source: | |
ghcjs-0.2.0.20151230.3_ghc-7.10.2: | |
url: "https://github.com/nrolland/ghcjs/releases/download/v.0.2.0.20151230.3/ghcjs-0.2.0.20151230.3.tar.gz" | |
resolver: ghcjs-0.2.0.20151230.3_ghc-7.10.2 | |
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: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ ! -f stack.yaml ]; then | |
>&2 echo "defaulting to GHCJS" | |
ln -s stack-ghcjs.yaml stack.yaml | |
else | |
if [ -L stack.yaml ]; then | |
if [ "$(readlink stack.yaml)" = stack-ghcjs.yaml ]; then | |
>&2 echo "enabling GHC build" | |
ln -sf stack-ghc.yaml stack.yaml | |
else | |
>&2 echo "enabling GHCJS build" | |
ln -sf stack-ghcjs.yaml stack.yaml | |
fi | |
else | |
>&2 echo "stack.yaml is not a symlink; leaving as is." | |
exit 1 | |
fi | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment