Skip to content

Commit 4ab6d0a

Browse files
committed
Merge pull request #7 from garyb/bump
Bump aff dependency, update build
2 parents 2e58f48 + b325858 commit 4ab6d0a

File tree

7 files changed

+51
-51
lines changed

7 files changed

+51
-51
lines changed

.gitignore

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1-
.*
2-
output
3-
bower_components
1+
/.*
2+
!/.gitignore
3+
!/.travis.yml
4+
/bower_components/
5+
/node_modules/
6+
/output/

.travis.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
language: node_js
2+
sudo: false
3+
node_js: 5
4+
install:
5+
- npm install
6+
- npm install -g bower
7+
- bower install
8+
script:
9+
- npm test
10+
after_success:
11+
- >-
12+
test $TRAVIS_TAG &&
13+
node_modules/.bin/psc-publish > .pursuit.json &&
14+
curl -X POST http://pursuit.purescript.org/packages \
15+
-d @.pursuit.json \
16+
-H 'Accept: application/json' \
17+
-H "Authorization: token ${GITHUB_TOKEN}"

README.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
11
# purescript-aff-coroutines
22

33
[![Latest release](http://img.shields.io/bower/v/purescript-aff-coroutines.svg)](https://github.com/purescript-contrib/purescript-aff-coroutines/releases)
4+
[![Build Status](https://travis-ci.org/purescript-contrib/purescript-aff-coroutines.svg?branch=master)](https://travis-ci.org/purescript-contrib/purescript-aff-coroutines)
5+
[![Dependency Status](https://www.versioneye.com/user/projects/56e03527df573d0048dafe7e/badge.svg?style=flat)](https://www.versioneye.com/user/projects/56e03527df573d0048dafe7e)
46
[![Maintainer: paf31](https://img.shields.io/badge/maintainer-paf31-lightgrey.svg)](http://github.com/paf31)
57

6-
Helper functions for creating coroutines with the Aff monad
8+
Helper functions for creating coroutines with the Aff monad.
79

8-
- [Module Documentation](docs/Control/Coroutine/Aff.md)
9-
- [Example](test/Main.purs)
10+
## Getting started
1011

11-
## Usage
12+
``` purescript
13+
bower install purescript-aff-coroutines
14+
```
1215

13-
bower i purescript-aff-coroutines
16+
[See the tests](https://github.com/purescript-contrib/purescript-aff-coroutines/blob/master/test/Main.purs) for some example usages.
17+
18+
## Module documentation
19+
20+
Module documentation is [published on Pursuit](http://pursuit.purescript.org/packages/purescript-aff-coroutines).

bower.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
],
1212
"repository": {
1313
"type": "git",
14-
"url": "git://github.com/paf31/purescript-aff-coroutines.git"
14+
"url": "git://github.com/purescript-contrib/purescript-aff-coroutines.git"
1515
},
1616
"dependencies": {
17-
"purescript-aff": "^0.14.1",
17+
"purescript-aff": "^0.16.0",
1818
"purescript-coroutines": "^0.5.0"
1919
}
2020
}

docs/Control/Coroutine/Aff.md

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

package.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"private": true,
3+
"scripts": {
4+
"clean": "rimraf output && rimraf .pulp-cache",
5+
"build": "pulp build",
6+
"test": "pulp test"
7+
},
8+
"devDependencies": {
9+
"pulp": "^8.1.0",
10+
"purescript": "^0.7.6",
11+
"rimraf": "^2.5.2"
12+
}
13+
}

src/Control/Coroutine/Aff.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ produce recv = hoistFreeT liftAff do
4747
-- | `MonadAff`, rather than `Aff` specifically.
4848
produce'
4949
:: forall a r m eff
50-
. (Monad m, MonadAff (avar :: AVAR | eff) m)
50+
. (MonadAff (avar :: AVAR | eff) m)
5151
=> ((Either a r -> Eff (avar :: AVAR | eff) Unit) -> Eff (avar :: AVAR | eff) Unit)
5252
-> Producer a m r
5353
produce' = hoistFreeT liftAff <<< produce

0 commit comments

Comments
 (0)