Skip to content

Commit 1265470

Browse files
committed
Update dependencies
1 parent 65810f5 commit 1265470

File tree

4 files changed

+59
-32
lines changed

4 files changed

+59
-32
lines changed

Gruntfile.js

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,32 @@ module.exports = function(grunt) {
22

33
"use strict";
44

5-
grunt.initConfig({
6-
5+
grunt.initConfig({
6+
77
libFiles: [
88
"src/**/*.purs",
99
"bower_components/purescript-*/src/**/*.purs",
1010
],
11-
11+
1212
clean: ["output"],
13-
13+
1414
pscMake: ["<%=libFiles%>"],
1515
dotPsci: ["<%=libFiles%>"],
16-
docgen: {
16+
pscDocs: {
1717
readme: {
1818
src: "src/**/*.purs",
1919
dest: "README.md"
2020
}
21-
}
21+
},
22+
23+
jsvalidate: ["output/**/*.js"]
2224

2325
});
2426

2527
grunt.loadNpmTasks("grunt-contrib-clean");
2628
grunt.loadNpmTasks("grunt-purescript");
27-
28-
grunt.registerTask("make", ["pscMake", "dotPsci", "docgen"]);
29+
grunt.loadNpmTasks("grunt-jsvalidate");
30+
31+
grunt.registerTask("make", ["pscMake", "jsvalidate", "dotPsci", "pscDocs"]);
2932
grunt.registerTask("default", ["make"]);
3033
};

README.md

Lines changed: 41 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,47 +2,68 @@
22

33
## Module Data.Profunctor
44

5-
### Type Classes
5+
#### `Profunctor`
66

7-
class Profunctor p where
8-
dimap :: forall a b c d. (a -> b) -> (c -> d) -> p b c -> p a d
7+
``` purescript
8+
class Profunctor p where
9+
dimap :: forall a b c d. (a -> b) -> (c -> d) -> p b c -> p a d
10+
```
911

1012

11-
### Type Class Instances
13+
#### `lmap`
1214

13-
instance profunctorArr :: Profunctor Prim.Function
15+
``` purescript
16+
lmap :: forall a b c p. (Profunctor p) => (a -> b) -> p b c -> p a c
17+
```
1418

1519

16-
### Values
20+
#### `rmap`
1721

18-
lmap :: forall a b c p. (Profunctor p) => (a -> b) -> p b c -> p a c
22+
``` purescript
23+
rmap :: forall a b c p. (Profunctor p) => (b -> c) -> p a b -> p a c
24+
```
25+
26+
27+
#### `profunctorArr`
28+
29+
``` purescript
30+
instance profunctorArr :: Profunctor Prim.Function
31+
```
1932

20-
rmap :: forall a b c p. (Profunctor p) => (b -> c) -> p a b -> p a c
2133

2234

2335
## Module Data.Profunctor.Choice
2436

25-
### Type Classes
37+
#### `Choice`
38+
39+
``` purescript
40+
class (Profunctor p) <= Choice p where
41+
left :: forall a b c. p a b -> p (Either a c) (Either b c)
42+
right :: forall a b c. p b c -> p (Either a b) (Either a c)
43+
```
2644

27-
class (Profunctor p) <= Choice p where
28-
left :: forall a b c. p a b -> p (Either a c) (Either b c)
29-
right :: forall a b c. p b c -> p (Either a b) (Either a c)
3045

46+
#### `choiceArr`
3147

32-
### Type Class Instances
48+
``` purescript
49+
instance choiceArr :: Choice Prim.Function
50+
```
3351

34-
instance choiceArr :: Choice Prim.Function
3552

3653

3754
## Module Data.Profunctor.Strong
3855

39-
### Type Classes
56+
#### `Strong`
4057

41-
class (Profunctor p) <= Strong p where
42-
first :: forall a b c. p a b -> p (Tuple a c) (Tuple b c)
43-
second :: forall a b c. p b c -> p (Tuple a b) (Tuple a c)
58+
``` purescript
59+
class (Profunctor p) <= Strong p where
60+
first :: forall a b c. p a b -> p (Tuple a c) (Tuple b c)
61+
second :: forall a b c. p b c -> p (Tuple a b) (Tuple a c)
62+
```
4463

4564

46-
### Type Class Instances
65+
#### `strongArr`
4766

48-
instance strongArr :: Strong Prim.Function
67+
``` purescript
68+
instance strongArr :: Strong Prim.Function
69+
```

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@
2222
],
2323
"dependencies": {
2424
"purescript-either": "~0.1.4",
25-
"purescript-tuples": "~0.2.2"
25+
"purescript-tuples": "~0.3.0"
2626
}
2727
}

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,11 @@
2020
},
2121
"homepage": "https://github.com/purescript/purescript-profunctors",
2222
"devDependencies": {
23-
"grunt": "~0.4.5",
24-
"grunt-purescript": "~0.5.2",
25-
"grunt-contrib-clean": "~0.5.0"
23+
"grunt": "^0.4.5",
24+
"grunt-purescript": "^0.6.0",
25+
"grunt-contrib-clean": "^0.5.0"
26+
},
27+
"dependencies": {
28+
"grunt-jsvalidate": "^0.2.2"
2629
}
2730
}

0 commit comments

Comments
 (0)