Skip to content

Update strongcheck dependency, fix warning #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 29, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,7 @@ language: node_js
sudo: false
node_js:
- 0.10
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 bower gulp -g
- npm install
- bower install --production
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"purescript-maps": "^0.5.0"
},
"devDependencies": {
"purescript-strongcheck": "^0.12.0"
"purescript-strongcheck": "^0.14.0"
}
}
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"license": "MIT",
"devDependencies": {
"gulp": "^3.9.0",
"gulp-purescript": "^0.5.0",
"gulp-run": "^1.6.8"
"gulp-purescript": "^0.7.0",
"gulp-run": "^1.6.8",
"purescript": "^0.7.4"
}
}
10 changes: 5 additions & 5 deletions src/Data/Argonaut/Core.purs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module Data.Argonaut.Core
module Data.Argonaut.Core
( Json(..)
, JNull(..)
, JBoolean(..)
Expand Down Expand Up @@ -85,10 +85,10 @@ foldJsonObject :: forall a. a -> (JObject -> a) -> Json -> a
foldJsonObject d f j = runFn7 _foldJson (const d) (const d) (const d) (const d) (const d) f j

verbJsonType :: forall a b. b -> (a -> b) -> (b -> (a -> b) -> Json -> b) -> Json -> b
verbJsonType def f fold = fold def f
verbJsonType def f fold = fold def f


-- Tests
-- Tests
isJsonType :: forall a. (Boolean -> (a -> Boolean) -> Json -> Boolean) ->
Json -> Boolean
isJsonType = verbJsonType false (const true)
Expand All @@ -113,7 +113,7 @@ isObject = isJsonType foldJsonObject

-- Decoding

toJsonType :: forall a b. (Maybe a -> (a -> Maybe a) -> Json -> Maybe a) ->
toJsonType :: forall a. (Maybe a -> (a -> Maybe a) -> Json -> Maybe a) ->
Json -> Maybe a
toJsonType = verbJsonType Nothing Just

Expand Down Expand Up @@ -189,7 +189,7 @@ instance ordJson :: Ord Json where
compare a b = runFn5 _compare EQ GT LT a b

instance showJson :: Show Json where
show = _stringify
show = _stringify

-- Foreigns

Expand Down