Skip to content

Commit

Permalink
Merge pull request #26 from slamdata/monadrec-instance
Browse files Browse the repository at this point in the history
Add MonadRec instance and test
  • Loading branch information
jdegoes committed Jul 16, 2015
2 parents 7533455 + 6d27a8b commit 1cdc413
Show file tree
Hide file tree
Showing 9 changed files with 70 additions and 11,980 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
/bower_components/
/tmp/
/node_modules/
/examples/output/examples.js
16 changes: 4 additions & 12 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

{
"name": "purescript-aff",
"homepage": "https://github.com/slamdata/purescript-aff",
Expand All @@ -23,16 +22,9 @@
"package.json"
],
"dependencies": {
"purescript-prelude": "~0.1.0",
"purescript-console": "~0.1.0",
"purescript-tuples": "~0.4.0",
"purescript-either": "~0.2.0",
"purescript-monoid": "~0.3.0",
"purescript-exceptions": "~0.3.0",
"purescript-control": "~0.3.0",
"purescript-maybe": "~0.3.0",
"purescript-eff": "~0.1.0",
"purescript-transformers": "~0.6.0",
"purescript-functions": "~0.1.0"
"purescript-console": "^0.1.0",
"purescript-exceptions": "^0.3.0",
"purescript-functions": "^0.1.0",
"purescript-transformers": "^0.6.0"
}
}
1 change: 1 addition & 0 deletions docs/Control.Monad.Aff.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ instance altAff :: Alt (Aff e)
instance plusAff :: Plus (Aff e)
instance alternativeAff :: Alternative (Aff e)
instance monadPlusAff :: MonadPlus (Aff e)
instance monadRecAff :: MonadRec (Aff e)
```

#### `PureAff`
Expand Down
File renamed without changes.
25 changes: 16 additions & 9 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ var gulp = require('gulp')
, purescript = require('gulp-purescript')
, jsValidate = require('gulp-jsvalidate')
, plumber = require("gulp-plumber")
, run = require("gulp-run")
;

var sources = [
'src/**/*.purs',
'test/**/*.purs',
'examples/src/**/*.purs',
'bower_components/purescript-*/src/**/*.purs'
];
Expand All @@ -30,13 +32,6 @@ gulp.task('psc', function() {
})
});

gulp.task('pscBundle', function() {
return purescript.pscBundle({
src: "output/**/*.js",
output: "output/examples.js"
})
});

gulp.task('pscDocs', function() {
return purescript.pscDocs({
src: sources,
Expand All @@ -59,6 +54,18 @@ gulp.task('dotPsci', function() {
.pipe(gulp.dest('.'))
})

gulp.task('examples', ['psc'], function() {
return purescript.pscBundle({
src: "output/**/*.js",
main: "Examples",
output: "examples/output/examples.js"
})
});

gulp.task('test', ['psc'], function() {
return purescript.pscBundle({ src: "output/**/*.js", main: "Test.Main" })
.pipe(run("node"));
});

gulp.task('make', ['jsvalidate', 'psc', 'dotPsci', 'pscDocs']);
gulp.task('test', ['jsvalidate', 'psc', 'pscBundle', 'pscDocs']);
gulp.task('default', ['make']);
gulp.task('default', ['make', 'examples', 'test']);
Loading

0 comments on commit 1cdc413

Please sign in to comment.