Skip to content

Commit 4cadab8

Browse files
committed
Update build
1 parent 19bf30e commit 4cadab8

File tree

4 files changed

+17
-7
lines changed

4 files changed

+17
-7
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
/.*
2+
!/.gitignore
13
/bower_components/
24
/node_modules/
35
/output/
46
/tmp/
5-
/.psci

Gruntfile.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,19 @@ module.exports = function(grunt) {
1212
clean: ["output"],
1313

1414
pscMake: ["<%=libFiles%>"],
15-
dotPsci: ["<%=libFiles%>"]
15+
dotPsci: ["<%=libFiles%>"],
16+
docgen: {
17+
readme: {
18+
src: "src/**/*.purs",
19+
dest: "README.md"
20+
}
21+
}
1622

1723
});
1824

1925
grunt.loadNpmTasks("grunt-contrib-clean");
2026
grunt.loadNpmTasks("grunt-purescript");
2127

22-
grunt.registerTask("make", ["pscMake", "dotPsci"]);
28+
grunt.registerTask("make", ["pscMake", "dotPsci", "docgen"]);
2329
grunt.registerTask("default", ["make"]);
2430
};

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
# Data.Tuple
1+
# Module Documentation
2+
3+
## Module Data.Tuple
24

35
### Types
46

57
data Tuple a b where
68
Tuple :: a -> b -> Tuple a b
79

10+
811
### Type Class Instances
912

1013
instance applicativeTuple :: (Monoid a) => Applicative (Tuple a)
@@ -23,6 +26,7 @@
2326

2427
instance showTuple :: (Show a, Show b) => Show (Tuple a b)
2528

29+
2630
### Values
2731

2832
curry :: forall a b c. (Tuple a b -> c) -> a -> b -> c
@@ -37,4 +41,4 @@
3741

3842
unzip :: forall a b. [Tuple a b] -> Tuple [a] [b]
3943

40-
zip :: forall a b. [a] -> [b] -> [Tuple a b]
44+
zip :: forall a b. [a] -> [b] -> [Tuple a b]

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
{
2-
"name": "purescript-tuples",
32
"private": true,
43
"dependencies": {
54
"grunt": "~0.4.4",
6-
"grunt-purescript": "~0.5.0",
5+
"grunt-purescript": "~0.5.1",
76
"grunt-contrib-clean": "~0.5.0"
87
}
98
}

0 commit comments

Comments
 (0)