Skip to content

Commit

Permalink
Merge pull request #15 from purescript/0.8-updates
Browse files Browse the repository at this point in the history
Updates for PureScript 0.8
  • Loading branch information
garyb committed Mar 25, 2016
2 parents 1e99a3e + a5ac1a5 commit e4fdb6c
Show file tree
Hide file tree
Showing 18 changed files with 63 additions and 335 deletions.
16 changes: 13 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,24 @@
language: node_js
sudo: false
node_js:
- 0.10
sudo: required
dist: trusty
node_js: 5
env:
- PATH=$HOME/purescript:$PATH
install:
- 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')
- wget -O $HOME/purescript.tar.gz https://github.com/purescript/purescript/releases/download/$TAG/linux64.tar.gz
- tar -xvf $HOME/purescript.tar.gz -C $HOME/
- chmod a+x $HOME/purescript
- npm install -g bower
- npm install
- bower install
script:
- npm run build
after_success:
- >-
test $TRAVIS_TAG &&
psc-publish > .pursuit.json &&
curl -X POST http://pursuit.purescript.org/packages \
-d @.pursuit.json \
-H 'Accept: application/json' \
-H "Authorization: token ${GITHUB_TOKEN}"
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ Profunctor typeclass.
bower install purescript-profunctor
```

## Module documentation
## Documentation

- [Data.Profunctor](docs/Data/Profunctor.md)
- [Data.Profunctor.Choice](docs/Data/Profunctor/Choice.md)
- [Data.Profunctor.Strong](docs/Data/Profunctor/Strong.md)
Module documentation is [published on Pursuit](http://pursuit.purescript.org/packages/purescript-profunctor).
8 changes: 2 additions & 6 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
{
"name": "purescript-profunctor",
"homepage": "https://github.com/purescript/purescript-profunctor",
"keywords": [
"purescript",
"profunctor"
],
"description": "Profunctor typeclass for PureScript",
"authors": [
"Hardy Jones <jones3.hardy@gmail.com>",
Expand All @@ -26,7 +22,7 @@
"package.json"
],
"dependencies": {
"purescript-either": "^0.2.0",
"purescript-tuples": "^0.4.0"
"purescript-either": "^1.0.0-rc.1",
"purescript-tuples": "^1.0.0-rc.1"
}
}
54 changes: 0 additions & 54 deletions docs/Data/Profunctor.md

This file was deleted.

79 changes: 0 additions & 79 deletions docs/Data/Profunctor/Choice.md

This file was deleted.

17 changes: 0 additions & 17 deletions docs/Data/Profunctor/Closed.md

This file was deleted.

13 changes: 0 additions & 13 deletions docs/Data/Profunctor/Cochoice.md

This file was deleted.

13 changes: 0 additions & 13 deletions docs/Data/Profunctor/Costrong.md

This file was deleted.

25 changes: 0 additions & 25 deletions docs/Data/Profunctor/Star.md

This file was deleted.

77 changes: 0 additions & 77 deletions docs/Data/Profunctor/Strong.md

This file was deleted.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"private": true,
"scripts": {
"postinstall": "pulp dep install",
"build": "pulp build && rimraf docs && pulp docs"
"clean": "rimraf output && rimraf .pulp-cache",
"build": "pulp build"
},
"devDependencies": {
"pulp": "^4.0.2",
"rimraf": "^2.4.1"
"pulp": "^8.1.0",
"rimraf": "^2.5.0"
}
}
4 changes: 2 additions & 2 deletions src/Data/Profunctor.purs
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ class Profunctor p where
dimap :: forall a b c d. (a -> b) -> (c -> d) -> p b c -> p a d

-- | Map a function over the (contravariant) first type argument only.
lmap :: forall a b c p. (Profunctor p) => (a -> b) -> p b c -> p a c
lmap :: forall a b c p. Profunctor p => (a -> b) -> p b c -> p a c
lmap a2b = dimap a2b id

-- | Map a function over the (covariant) second type argument only.
rmap :: forall a b c p. (Profunctor p) => (b -> c) -> p a b -> p a c
rmap :: forall a b c p. Profunctor p => (b -> c) -> p a b -> p a c
rmap b2c = dimap id b2c

-- | Lift a pure function into any `Profunctor` which is also a `Category`.
Expand Down
Loading

0 comments on commit e4fdb6c

Please sign in to comment.