Skip to content

Commit

Permalink
Merge pull request #31 from purescript-contrib/bump
Browse files Browse the repository at this point in the history
Prepare for 2.0 release
  • Loading branch information
garyb authored Oct 22, 2016
2 parents 59d8798 + 87a75e1 commit 8b196bc
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
# purescript-argonaut

[![Latest release](http://img.shields.io/bower/v/purescript-argonaut.svg)](https://github.com/purescript-contrib/purescript-argonaut/releases)
[![Latest release](http://img.shields.io/github/release/purescript-contrib/purescript-argonaut.svg)](https://github.com/purescript-contrib/purescript-argonaut/releases)
[![Build Status](https://travis-ci.org/purescript-contrib/purescript-argonaut.svg)](https://travis-ci.org/purescript-contrib/purescript-argonaut)
[![Dependency Status](https://www.versioneye.com/user/projects/563a42e91d47d40015000890/badge.svg?style=flat)](https://www.versioneye.com/user/projects/563a42e91d47d40015000890)
[![Maintainer: slamdata](https://img.shields.io/badge/maintainer-slamdata-lightgrey.svg)](http://github.com/slamdata)

This library bundles together the following:

- [purescript-argonaut-core](https://github.com/purescript-contrib/purescript-argonaut-core) - basic parsing, printing, folding and types for `Json`
- [purescript-argonaut-traversals](https://github.com/purescript-contrib/purescript-argonaut-traversals) - `JCursor`, prisms and traversals for `Json`
- [purescript-argonaut-codecs](https://github.com/purescript-contrib/purescript-argonaut-codecs) - `EncodeJson` and `DecodeJson` classes, their instances

- [purescript-argonaut-traversals](https://github.com/purescript-contrib/purescript-argonaut-traversals) - `JCursor`, prisms and traversals for `Json`
10 changes: 5 additions & 5 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
},
"license": "MIT",
"dependencies": {
"purescript-argonaut-codecs": "^1.0.0",
"purescript-argonaut-core": "^1.0.0",
"purescript-argonaut-traversals": "^1.0.0"
"purescript-argonaut-codecs": "^2.0.0",
"purescript-argonaut-core": "^2.0.0",
"purescript-argonaut-traversals": "^2.0.0"
},
"devDependencies": {
"purescript-console": "^1.0.0",
"purescript-strongcheck": "^1.1.1"
"purescript-console": "^2.0.0",
"purescript-strongcheck": "^2.0.0"
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"devDependencies": {
"pulp": "^9.0.1",
"purescript-psa": "^0.3.9",
"purescript": "^0.9.1",
"rimraf": "^2.4.4"
"purescript": "^0.10.1",
"rimraf": "^2.5.4"
}
}
4 changes: 2 additions & 2 deletions test/Test/Main.purs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ genJObject sz = do
let
f (AlphaNumString s) = s <> "x"
k' = f <$> k
pure $ fromObject <<< M.fromList <<< fromFoldable <<< nubBy (\a b -> (fst a) == (fst b)) $ zipWith Tuple k' v
pure $ fromObject <<< M.fromFoldable <<< nubBy (\a b -> (fst a) == (fst b)) $ zipWith Tuple k' v

genJson :: Size -> Gen Json
genJson 0 = oneOf genJNull [genJBool, genJNumber, genJString]
Expand Down Expand Up @@ -77,7 +77,7 @@ runTestJCursor (TestJCursor j) = j

instance arbJCursor :: Arbitrary TestJCursor where
arbitrary = do
i <- chooseInt 0.0 2.0
i <- chooseInt 0 2
r <- if i == 0 then pure JCursorTop
else if i == 1 then JField <$> arbitrary <*> (runTestJCursor <$> arbitrary)
else JIndex <$> arbitrary <*> (runTestJCursor <$> arbitrary)
Expand Down

0 comments on commit 8b196bc

Please sign in to comment.