Skip to content

Commit e57232c

Browse files
authored
Merge pull request #3 from purescript/build
Add Travis build, etc.
2 parents c2b667d + deb656e commit e57232c

File tree

8 files changed

+74
-8
lines changed

8 files changed

+74
-8
lines changed

.gitignore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
/.*
2+
!/.gitignore
3+
!/.eslintrc.json
4+
!/.travis.yml
15
/bower_components/
26
/node_modules/
3-
/.pulp-cache/
47
/output/
5-
/generated-docs/
6-
/.psc*
7-
/.psa*

.travis.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
language: node_js
2+
dist: trusty
3+
sudo: required
4+
node_js: stable
5+
env:
6+
- PATH=$HOME/purescript:$PATH
7+
install:
8+
- 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')
9+
- wget -O $HOME/purescript.tar.gz https://github.com/purescript/purescript/releases/download/$TAG/linux64.tar.gz
10+
- tar -xvf $HOME/purescript.tar.gz -C $HOME/
11+
- chmod a+x $HOME/purescript
12+
- npm install -g bower
13+
- npm install
14+
- bower install
15+
script:
16+
- npm run -s build
17+
after_success:
18+
- >-
19+
test $TRAVIS_TAG &&
20+
echo $GITHUB_TOKEN | pulp login &&
21+
echo y | pulp publish --no-push

LICENSE

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2017 Gary Burgess
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
the Software, and to permit persons to whom the Software is furnished to do so,
10+
subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
11
# purescript-gen
22

3+
[![Latest release](http://img.shields.io/github/release/purescript/purescript-gen.svg)](https://github.com/purescript/purescript-gen/releases)
4+
[![Build status](https://travis-ci.org/purescript/purescript-gen.svg?branch=master)](https://travis-ci.org/purescript/purescript-gen)
5+
36
A type class for random generator implementations.
7+
8+
## Installation
9+
10+
```
11+
bower install purescript-gen
12+
```
13+
14+
## Documentation
15+
16+
Module documentation is [published on Pursuit](http://pursuit.purescript.org/packages/purescript-gen).

bower.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"name": "purescript-gen",
3-
"homepage": "https://github.com/garyb/purescript-gen",
3+
"homepage": "https://github.com/purescript/purescript-gen",
44
"license": "MIT",
55
"repository": {
66
"type": "git",
7-
"url": "git://github.com/garyb/purescript-gen.git"
7+
"url": "git://github.com/purescript/purescript-gen.git"
88
},
99
"ignore": [
1010
"**/.*",

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 -- --censor-lib --strict"
6+
},
7+
"devDependencies": {
8+
"eslint": "^3.19.0",
9+
"pulp": "^11.0.0",
10+
"purescript-psa": "^0.5.0",
11+
"rimraf": "^2.6.1"
12+
}
13+
}

src/Control/Monad/Gen.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ data LL a = Cons a (LL a) | Nil
2626

2727
-- | Creates a generator that outputs a value chosen from one of two existing
2828
-- | existing generators with even probability.
29-
choose :: forall m a b. MonadGen m => m a -> m a -> m a
29+
choose :: forall m a. MonadGen m => m a -> m a -> m a
3030
choose genA genB = chooseBool >>= if _ then genA else genB
3131

3232
-- | Creates a generator that outputs a value chosen from a selection of

src/Control/Monad/Gen/Common.purs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ module Control.Monad.Gen.Common where
22

33
import Prelude
44

5-
import Control.Alt (class Alt)
65
import Control.Apply (lift2)
76
import Control.Monad.Gen (class MonadGen, choose, chooseFloat)
87

0 commit comments

Comments
 (0)