Skip to content

Commit 913290f

Browse files
committed
Merge pull request #46 from purescript/0.8-updates
Updates for PureScript 0.8
2 parents 873c777 + 4c9dcd7 commit 913290f

File tree

21 files changed

+102
-459
lines changed

21 files changed

+102
-459
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
.DS_Store
21
/.*
32
!/.gitignore
43
!/.travis.yml
54
/bower_components/
65
/node_modules/
76
/output/
8-
/tmp/

.travis.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,24 @@
11
language: node_js
2-
sudo: false
3-
node_js:
4-
- 0.10
2+
sudo: required
3+
dist: trusty
4+
node_js: 5
55
env:
66
- PATH=$HOME/purescript:$PATH
77
install:
88
- TAG=$(wget -q -O - https://github.com/purescript/purescript/releases/latest --server-response --max-redirect 0 2>&1 | sed -n -e 's/.*Location:.*tag\///p')
99
- wget -O $HOME/purescript.tar.gz https://github.com/purescript/purescript/releases/download/$TAG/linux64.tar.gz
1010
- tar -xvf $HOME/purescript.tar.gz -C $HOME/
1111
- chmod a+x $HOME/purescript
12+
- npm install -g bower
1213
- npm install
14+
- bower install
1315
script:
14-
- npm run build
16+
- npm test
17+
after_success:
18+
- >-
19+
test $TRAVIS_TAG &&
20+
psc-publish > .pursuit.json &&
21+
curl -X POST http://pursuit.purescript.org/packages \
22+
-d @.pursuit.json \
23+
-H 'Accept: application/json' \
24+
-H "Authorization: token ${GITHUB_TOKEN}"

README.md

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,12 @@ bower install purescript-free
1919

2020
## Documentation
2121

22-
* [Control.Monad.Free](docs/Control/Monad/Free.md)
23-
* [Control.Comonad.Cofree](docs/Control/Comonad/Cofree.md)
24-
* [Data.Yoneda](docs/Data/Yoneda.md)
25-
* [Data.Coyoneda](docs/Data/Coyoneda.md)
26-
* [Control.Monad.Trampoline](docs/Control/Monad/Trampoline.md)
22+
Module documentation is [published on Pursuit](http://pursuit.purescript.org/packages/purescript-free).
2723

2824
## Benchmarks
2925

3026
The following benchmarks compare the current implementation with the implementation at `v0.6.1` (purescript/purescript-free@0df59c5d459fed983131856886fc3a4b43234f1f), which used the `Gosub` technique to defer monadic binds.
3127

32-
The benchmarks may be run as follows. Note that `pulp` must be on your path.
33-
34-
```bash
35-
npm install
36-
37-
npm run-script benchmark
38-
```
39-
4028
![left-bind-small](benchmark/left-bind-small.png)
4129

4230
![left-bind-large](benchmark/left-bind-large.png)

benchmark/Benchmark/Main.purs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import qualified Benchmark.Trampoline0df59c5 as T
1919
leftBindSmallBenchmark :: Benchmark
2020
leftBindSmallBenchmark = mkBenchmark
2121
{ slug: "left-bind-small"
22-
, title: "Left associated binds (small - " ++ show inputsPerSize ++ " inputs per size)"
22+
, title: "Left associated binds (small - " <> show inputsPerSize <> " inputs per size)"
2323
, sizes: [1, 2, 3, 4, 5, 10, 20, 30, 40, 50, 100, 250, 500, 1000]
2424
, sizeInterpretation: "Number of binds"
2525
, inputsPerSize: inputsPerSize
@@ -47,7 +47,7 @@ leftBindSmallBenchmark = mkBenchmark
4747
rightBindSmallBenchmark :: Benchmark
4848
rightBindSmallBenchmark = mkBenchmark
4949
{ slug: "right-bind-small"
50-
, title: "Right associated binds (small - " ++ show inputsPerSize ++ " inputs per size)"
50+
, title: "Right associated binds (small - " <> show inputsPerSize <> " inputs per size)"
5151
, sizes: [1, 2, 3, 4, 5, 10, 20, 30, 40, 50, 100, 250, 500, 1000]
5252
, sizeInterpretation: "Number of binds"
5353
, inputsPerSize: inputsPerSize
@@ -75,7 +75,7 @@ rightBindSmallBenchmark = mkBenchmark
7575
leftBindLargeBenchmark :: Benchmark
7676
leftBindLargeBenchmark = mkBenchmark
7777
{ slug: "left-bind-large"
78-
, title: "Left associated binds (large - " ++ show inputsPerSize ++ " input per size)"
78+
, title: "Left associated binds (large - " <> show inputsPerSize <> " input per size)"
7979
, sizes: [1, 5, 10, 15, 20, 25, 30 ] <#> (* 100000)
8080
, sizeInterpretation: "Number of binds"
8181
, inputsPerSize: inputsPerSize
@@ -103,7 +103,7 @@ leftBindLargeBenchmark = mkBenchmark
103103
rightBindLargeBenchmark :: Benchmark
104104
rightBindLargeBenchmark = mkBenchmark
105105
{ slug: "right-bind-large"
106-
, title: "Right associated binds (large - " ++ show inputsPerSize ++ " input per size)"
106+
, title: "Right associated binds (large - " <> show inputsPerSize <> " input per size)"
107107
, sizes: [1, 5, 10, 15, 20, 25, 30 ] <#> (* 100000)
108108
, sizeInterpretation: "Number of binds"
109109
, inputsPerSize: inputsPerSize

bower.json

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
"name": "purescript-free",
33
"homepage": "https://github.com/purescript/purescript-free",
44
"description": "Free, Cofree, Yoneda, Coyoneda, Trampoline",
5-
"keywords": [
6-
"purescript"
7-
],
85
"authors": [
96
"Eric Thul <[email protected]>",
107
"Brian McKenna <[email protected]>",
@@ -18,18 +15,22 @@
1815
"url": "git://github.com/purescript/purescript-free.git"
1916
},
2017
"ignore": [
21-
"*",
22-
"!src/**/*",
23-
"!LICENSE"
18+
"**/.*",
19+
"bower_components",
20+
"node_modules",
21+
"output",
22+
"test",
23+
"bower.json",
24+
"package.json"
2425
],
2526
"dependencies": {
26-
"purescript-catenable-lists": "^0.1.0",
27-
"purescript-exists": "^0.2.0",
28-
"purescript-inject": "^0.3.0",
29-
"purescript-transformers": "^0.8.1",
30-
"purescript-unsafe-coerce": "^0.1.0"
27+
"purescript-catenable-lists": "^1.0.0-rc.1",
28+
"purescript-exists": "^1.0.0-rc.1",
29+
"purescript-inject": "^1.0.0-rc.1",
30+
"purescript-transformers": "^1.0.0-rc.1",
31+
"purescript-unsafe-coerce": "^1.0.0-rc.1"
3132
},
3233
"devDependencies": {
33-
"purescript-console": "^0.1.1"
34+
"purescript-console": "^1.0.0-rc.1"
3435
}
3536
}

docs/Control/Comonad/Cofree.md

Lines changed: 0 additions & 57 deletions
This file was deleted.

docs/Control/Monad/Free.md

Lines changed: 0 additions & 99 deletions
This file was deleted.

docs/Control/Monad/Trampoline.md

Lines changed: 0 additions & 58 deletions
This file was deleted.

0 commit comments

Comments
 (0)