Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
garyb committed Feb 21, 2015
1 parent 65810f5 commit 1265470
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 32 deletions.
19 changes: 11 additions & 8 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,32 @@ module.exports = function(grunt) {

"use strict";

grunt.initConfig({
grunt.initConfig({

libFiles: [
"src/**/*.purs",
"bower_components/purescript-*/src/**/*.purs",
],

clean: ["output"],

pscMake: ["<%=libFiles%>"],
dotPsci: ["<%=libFiles%>"],
docgen: {
pscDocs: {
readme: {
src: "src/**/*.purs",
dest: "README.md"
}
}
},

jsvalidate: ["output/**/*.js"]

});

grunt.loadNpmTasks("grunt-contrib-clean");
grunt.loadNpmTasks("grunt-purescript");

grunt.registerTask("make", ["pscMake", "dotPsci", "docgen"]);
grunt.loadNpmTasks("grunt-jsvalidate");

grunt.registerTask("make", ["pscMake", "jsvalidate", "dotPsci", "pscDocs"]);
grunt.registerTask("default", ["make"]);
};
61 changes: 41 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,47 +2,68 @@

## Module Data.Profunctor

### Type Classes
#### `Profunctor`

class Profunctor p where
dimap :: forall a b c d. (a -> b) -> (c -> d) -> p b c -> p a d
``` purescript
class Profunctor p where
dimap :: forall a b c d. (a -> b) -> (c -> d) -> p b c -> p a d
```


### Type Class Instances
#### `lmap`

instance profunctorArr :: Profunctor Prim.Function
``` purescript
lmap :: forall a b c p. (Profunctor p) => (a -> b) -> p b c -> p a c
```


### Values
#### `rmap`

lmap :: forall a b c p. (Profunctor p) => (a -> b) -> p b c -> p a c
``` purescript
rmap :: forall a b c p. (Profunctor p) => (b -> c) -> p a b -> p a c
```


#### `profunctorArr`

``` purescript
instance profunctorArr :: Profunctor Prim.Function
```

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


## Module Data.Profunctor.Choice

### Type Classes
#### `Choice`

``` purescript
class (Profunctor p) <= Choice p where
left :: forall a b c. p a b -> p (Either a c) (Either b c)
right :: forall a b c. p b c -> p (Either a b) (Either a c)
```

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

#### `choiceArr`

### Type Class Instances
``` purescript
instance choiceArr :: Choice Prim.Function
```

instance choiceArr :: Choice Prim.Function


## Module Data.Profunctor.Strong

### Type Classes
#### `Strong`

class (Profunctor p) <= Strong p where
first :: forall a b c. p a b -> p (Tuple a c) (Tuple b c)
second :: forall a b c. p b c -> p (Tuple a b) (Tuple a c)
``` purescript
class (Profunctor p) <= Strong p where
first :: forall a b c. p a b -> p (Tuple a c) (Tuple b c)
second :: forall a b c. p b c -> p (Tuple a b) (Tuple a c)
```


### Type Class Instances
#### `strongArr`

instance strongArr :: Strong Prim.Function
``` purescript
instance strongArr :: Strong Prim.Function
```
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
],
"dependencies": {
"purescript-either": "~0.1.4",
"purescript-tuples": "~0.2.2"
"purescript-tuples": "~0.3.0"
}
}
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@
},
"homepage": "https://github.com/purescript/purescript-profunctors",
"devDependencies": {
"grunt": "~0.4.5",
"grunt-purescript": "~0.5.2",
"grunt-contrib-clean": "~0.5.0"
"grunt": "^0.4.5",
"grunt-purescript": "^0.6.0",
"grunt-contrib-clean": "^0.5.0"
},
"dependencies": {
"grunt-jsvalidate": "^0.2.2"
}
}

0 comments on commit 1265470

Please sign in to comment.