packages feed

JSONb 1.0.2 → 1.0.3

raw patch · 3 files changed

+7/−23 lines, 3 filesdep ~attoparsecdep ~basePVP ok

version bump matches the API change (PVP)

Dependency ranges changed: attoparsec, base

API changes (from Hackage documentation)

Files

JSONb.cabal view
@@ -1,10 +1,10 @@ name                          : JSONb-version                       : 1.0.2+version                       : 1.0.3 category                      : Text license                       : BSD3 license-file                  : LICENSE author                        : Jason Dusek-maintainer                    : jsonb@solidsnack.be +maintainer                    : jsonb@solidsnack.be homepage                      : http://github.com/solidsnack/JSONb/ synopsis                      : JSON parser that uses byte strings. description                   :
README view
@@ -1,21 +1,3 @@-  JSONb is a library for parsing JSON from lazy ByteStrings. It assumes the-  input is UTF-8.---                                                                    Test Suite-   ------------------------------------------------------------------------------    We test the library by:--   .  Pulling down large amounts of JSON from various web service providers.--   .  Parsing and unparsing the JSON with our parser.--   .  Feeding the original JSON along with our unparsed variety to the-      json.org parser.--   .  Testing that our parsed-unparsed JSON parses to the same JavaScript-      values as the original JSON from the point of view of the json.org-      parser.-+  JSONb is a library for parsing JSON from strict ByteStrings, based on+  AttoParsec. It assumes the input is UTF-8. 
Text/JSONb/Decode.hs view
@@ -22,7 +22,9 @@ import qualified Data.ByteString.UTF8 as UTF8 import qualified Data.Trie.Convenience as Trie import Data.Attoparsec (eitherResult)-import Data.Attoparsec.Char8 hiding (string, isDigit)+import Data.Attoparsec.Char8 ( choice, char, Parser, option, takeWhile1,+                               takeWhile, skipMany, satisfy, signed,+                               decimal, Result(..)                       ) import qualified Data.Attoparsec.Char8 as Attoparsec import Data.ByteString.Nums.Careless