Skip to content

Commit

Permalink
Merge pull request #138 from JordanMartinez/development
Browse files Browse the repository at this point in the history
Make minor release: PS-0.12.x-v0.9.5
  • Loading branch information
JordanMartinez committed Nov 15, 2018
2 parents 6a6c028 + 8997a31 commit 622b025
Show file tree
Hide file tree
Showing 13 changed files with 107 additions and 15 deletions.
6 changes: 3 additions & 3 deletions 00-Getting-Started/01-Install-Guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ If you ever want to support PureScript, consider making a pledge on its [Open Co

### Installation

The [Purescript By Example book](https://leanpub.com/purescript/) demonstrates how to set up one's environment for PureScript `0.11.x` (outdated). Since the book's release, PureScript `0.12.0` has been released, which introduced breaking changes. Fortunately, Justin Woo explains how to set up one's environment for the `0.12.0`. If you just want to get things set up ASAP, follow the below summary of his article's instructions. If you want to understand why you should do these commands, read [his article here](https://qiita.com/kimagure/items/570e6f2bbce5b4724564):
The [Purescript By Example book](https://leanpub.com/purescript/) demonstrates how to set up one's environment for PureScript `0.11.x` (outdated). Since the book's release, PureScript `0.12.0` has been released, which introduced breaking changes. Fortunately, Justin Woo explains how to set up one's environment for the `0.12.0` (since the article's publication, `0.12.1` has been released). If you just want to get things set up ASAP, follow the below summary of his article's instructions. If you want to understand why you should do these commands, read [his article here](https://qiita.com/kimagure/items/570e6f2bbce5b4724564):
1. Install Node 8 or greater: https://nodejs.org/en/download/
2. Set your npm prefix: `npm set prefix ~/.npm`
3. Set your PATH: `export PATH="$HOME/.npm/bin:$PATH"`
4. Install Purescript, pulp, and psc-package: `npm i -g purescript@0.12.0 pulp psc-package`
4. Install Purescript, pulp, and psc-package: `npm i -g purescript@0.12.1 pulp psc-package`

The following commands should now work (the versions beside them are the versions I used when writing this project):
```bash
purs --version # 0.12.0
purs --version # 0.12.1
pulp --version # 12.3.0
psc-package --version # 0.3.2
```
Expand Down
2 changes: 1 addition & 1 deletion 11-Syntax/01-Basic-Syntax/psc-package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "untitled",
"set": "psc-0.12.0-20180819",
"set": "psc-0.12.1",
"source": "https://github.com/purescript/package-sets.git",
"depends": [
"psci-support",
Expand Down
2 changes: 1 addition & 1 deletion 11-Syntax/02-Foreign-Function-Interface/psc-package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "untitled",
"set": "psc-0.12.0-20180819",
"set": "psc-0.12.1",
"source": "https://github.com/purescript/package-sets.git",
"depends": [
"psci-support",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "untitled",
"set": "psc-0.12.0-20180819",
"set": "psc-0.12.1",
"source": "https://github.com/purescript/package-sets.git",
"depends": [
"strings",
Expand Down
2 changes: 1 addition & 1 deletion 11-Syntax/04-Module-Syntax/psc-package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "untitled",
"set": "psc-0.12.0-20180819",
"set": "psc-0.12.1",
"source": "https://github.com/purescript/package-sets.git",
"depends": [
"psci-support",
Expand Down
2 changes: 1 addition & 1 deletion 11-Syntax/05-Prelude-Syntax/psc-package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "untitled",
"set": "psc-0.12.0",
"set": "psc-0.12.1",
"source": "https://github.com/purescript/package-sets.git",
"depends": [
"prelude"
Expand Down
5 changes: 3 additions & 2 deletions 21-Hello-World/03-Hello-World-and-Effects/psc-package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "untitled",
"set": "psc-0.12.0",
"set": "psc-0.12.1",
"source": "https://github.com/purescript/package-sets.git",
"depends": [
"psci-support",
Expand All @@ -9,6 +9,7 @@
"prelude",
"random",
"now",
"js-timers"
"js-timers",
"debug"
]
}
2 changes: 1 addition & 1 deletion 21-Hello-World/04-Debugging/psc-package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "untitled",
"set": "psc-0.12.0-20180819",
"set": "psc-0.12.1",
"source": "https://github.com/purescript/package-sets.git",
"depends": [
"debug",
Expand Down
2 changes: 1 addition & 1 deletion 21-Hello-World/05-Testing/psc-package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "untitled",
"set": "psc-0.12.0-20180828",
"set": "psc-0.12.1",
"source": "https://github.com/purescript/package-sets.git",
"depends": [
"exceptions",
Expand Down
2 changes: 1 addition & 1 deletion 21-Hello-World/07-Type-Level-Programming/psc-package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "untitled",
"set": "psc-0.12.0-20180901",
"set": "psc-0.12.1",
"source": "https://github.com/purescript/package-sets.git",
"depends": [
"tuples",
Expand Down
2 changes: 1 addition & 1 deletion 21-Hello-World/08-Application-Structure/psc-package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "untitled",
"set": "psc-0.12.0-20180901",
"set": "psc-0.12.1",
"source": "https://github.com/purescript/package-sets.git",
"depends": [
"run",
Expand Down
2 changes: 1 addition & 1 deletion 21-Hello-World/09-Games/psc-package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "untitled",
"set": "psc-0.12.0-20180901",
"set": "psc-0.12.1",
"source": "https://github.com/purescript/package-sets.git",
"depends": [
"avar",
Expand Down
91 changes: 91 additions & 0 deletions for-each-folder--install-deps-and-compile.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
#!/bin/sh

# This file will re-install and compile all the code in every folder
# in this project. It assumes that one has already installed
# purescript, pulp, and psc-package.
#
# Use it to update your entire project on new releases

## Syntax

echo "... Syntax ...."

cd 11-Syntax/01-Basic-Syntax/
pwd
rm -rf .psc-package/ .pulp-cache/ output/
psc-package install && pulp --psc-package build
cd ../../

cd 11-Syntax/02-Foreign-Function-Interface/
pwd
rm -rf .psc-package/ .pulp-cache/ output/
psc-package install && pulp --psc-package build
cd ../../

cd 11-Syntax/03-Type-Level-Programming-Syntax/
pwd
rm -rf .psc-package/ .pulp-cache/ output/
psc-package install && pulp --psc-package build
cd ../../

cd 11-Syntax/04-Module-Syntax/
pwd
rm -rf .psc-package/ .pulp-cache/ output/
psc-package install && pulp --psc-package build
cd ../../

cd 11-Syntax/05-Prelude-Syntax/
pwd
rm -rf .psc-package/ .pulp-cache/ output/
psc-package install && pulp --psc-package build
cd ../../

## Hello World

echo "... Hello World ...."

cd 21-Hello-World/03-Hello-World-and-Effects/
pwd
rm -rf .psc-package/ .pulp-cache/ output/
psc-package install && pulp --psc-package build
cd ../../

cd 21-Hello-World/04-Debugging/
pwd
rm -rf .psc-package/ .pulp-cache/ output/
psc-package install && pulp --psc-package build
cd ../../

cd 21-Hello-World/05-Testing/
pwd
rm -rf .psc-package/ .pulp-cache/ output/
psc-package install && pulp --psc-package test
cd ../../

# Benchmarking is omitted because it requires using a custom package set
# TODO: fix this by using Dhall
#cd 21-Hello-World/06-Benchmarking/
#
#rm -rf .psc-package/ .pulp-cache/ output/
#psc-package install && pulp --psc-package test
#cd ../../

cd 21-Hello-World/07-Type-Level-Programming/
pwd
rm -rf .psc-package/ .pulp-cache/ output/
psc-package install && pulp --psc-package build
cd ../../

cd 21-Hello-World/08-Application-Structure/
pwd
rm -rf .psc-package/ .pulp-cache/ output/
psc-package install && pulp --psc-package build
cd ../../

cd 21-Hello-World/09-Games/
pwd
rm -rf .psc-package/ .pulp-cache/ output/
psc-package install && pulp --psc-package build && pulp --psc-package test -m Test.Games.RandomNumber.Run.Infrastructure
cd ../../

echo "... Finished ...."

0 comments on commit 622b025

Please sign in to comment.