git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Safer installation from source in INSTALL.md (#2294)

* Safer installation from source in INSTALL.md This commit ensures that the stackage snapshot used when building from source following the instructions in INSTALL.md will be the same as the one used in development and in binary bundles. This is safer (because you'll end up with a set of dependencies which have been tested together) and it also means you'll always get the latest version according to Hackage. In comparison, the Stackage nightly is often behind because of waiting for purescript or other libraries to make changes to allow all packages in the nightly to build together. * Update CONTRIBUTING.md to use Stack

commitab5f139336c7343009e88c13b29c9cdf566b1713 authorHarry Garrood <harry@garrood.me> dateFri 2 Sep 2016, 06:05 (10 years ago) parent7fb1012
2 files changed+8−6
CONTRIBUTING.md+2−3 INSTALL.md+6−3
CONTRIBUTING.md+2−3
@@ -11,9 +11,8 @@ If you would like to contribute, please consider the issues in the current miles
1111Please follow the following guidelines:
1212
1313- Add at least a test to `examples/passing/` and possibly to `examples/failing`.
14−- Build the binaries and libs with `cabal build`
15−- Install the binaries and libs with `cabal install`.
16−- Run `cabal configure --enable-tests && cabal build && cabal test` to build the test suite. You will need `npm` and `node` on your PATH to run the tests.
14+- Build the binaries and libs with `stack build`
15+- Run the test suite with `stack test`. You will need `npm` and `node` on your PATH to run the tests.
1716- Build the core libraries by running the script in `core-tests`.
1817
1918## Code Review
INSTALL.md+6−3
@@ -27,16 +27,19 @@ GHC 7.10.1 or newer is required to compile from source. The easiest way is to
2727use stack:
2828
2929```
30−$ stack install --resolver=nightly purescript
30+$ stack update
31+$ stack unpack purescript
32+$ cd purescript-x.y.z # (replace x.y.z with whichever version you just downloaded)
33+$ stack install
3134```
3235
3336This will then copy the compiler and utilities into `~/.local/bin`.
3437
3538
36−If you don't have stack installed yet there are install instructions
39+If you don't have stack installed, there are install instructions
3740[here](https://github.com/commercialhaskell/stack/blob/master/doc/install_and_upgrade.md).
3841
39−If you don't have ghc installed yet, stack will prompt you to run `stack setup`
42+If you don't have ghc installed, stack will prompt you to run `stack setup`
4043which will install ghc for you.
4144
4245## The "curses" library