Skip to content

Commit

Permalink
Update for PureScript 0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
garyb committed Mar 26, 2017
1 parent 5746ab0 commit 1bea21e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
@@ -1,7 +1,7 @@
language: node_js
dist: trusty
sudo: required
node_js: 6
node_js: stable
env:
- PATH=$HOME/purescript:$PATH
install:
Expand Down
4 changes: 2 additions & 2 deletions bower.json
Expand Up @@ -17,7 +17,7 @@
"package.json"
],
"dependencies": {
"purescript-foldable-traversable": "^2.0.0",
"purescript-prelude": "^2.4.0"
"purescript-foldable-traversable": "^3.0.0",
"purescript-prelude": "^3.0.0"
}
}
8 changes: 4 additions & 4 deletions package.json
Expand Up @@ -2,11 +2,11 @@
"private": true,
"scripts": {
"clean": "rimraf output && rimraf .pulp-cache",
"build": "pulp build --censor-lib --strict"
"build": "pulp build -- --censor-lib --strict"
},
"devDependencies": {
"pulp": "^9.0.1",
"purescript-psa": "^0.3.9",
"rimraf": "^2.5.0"
"pulp": "^10.0.4",
"purescript-psa": "^0.5.0-rc.1",
"rimraf": "^2.6.1"
}
}
2 changes: 1 addition & 1 deletion src/Data/Tuple.purs
Expand Up @@ -172,5 +172,5 @@ swap :: forall a b. Tuple a b -> Tuple b a
swap (Tuple a b) = Tuple b a

-- | Lookup a value in a data structure of `Tuple`s, generalizing association lists.
lookup :: forall a b f. (Foldable f, Eq a) => a -> f (Tuple a b) -> Maybe b
lookup :: forall a b f. Foldable f => Eq a => a -> f (Tuple a b) -> Maybe b
lookup a = unwrap <<< foldMap \(Tuple a' b) -> First (if a == a' then Just b else Nothing)

0 comments on commit 1bea21e

Please sign in to comment.