packages feed

hjpath 3.0 → 3.0.1

raw patch · 2 files changed

+4/−4 lines, 2 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Text.JSON.JPath: JArray :: [Json] -> Json
- Text.JSON.JPath: JBool :: Bool -> Json
- Text.JSON.JPath: JNull :: Json
- Text.JSON.JPath: JNumber :: Rational -> Json
- Text.JSON.JPath: JObject :: Map String Json -> Json
- Text.JSON.JPath: JString :: String -> Json
- Text.JSON.JPath: data Json :: *

Files

Text/JSON/JPath.hs view
@@ -3,7 +3,7 @@ {- | I wanted to insert a description here, but got tired fighting with haddock escaping. Documentation: <http://bitcheese.net/wiki/code/hjpath> -} -module Text.JSON.JPath (jPath, jPathModify, Json(..), QueryElement(..), HJsonLike, QueryLike) where+module Text.JSON.JPath (jPath, jPathModify, QueryElement(..), HJsonLike, QueryLike) where  import qualified Data.Map as Map import Data.List@@ -82,7 +82,7 @@  element :: GenParser Char st [QueryElement] element = do-	parsedName <- optionMaybe (deepLookup <|> wildcard <|> name)+	parsedName <- optionMaybe (try deepLookup <|> wildcard <|> name) 	parsedIndex <- optionMaybe index 	return $ catMaybes [parsedName, parsedIndex] @@ -107,7 +107,7 @@ 	result <- between (string "[") (string "]") integer 	return $ ArrayLookup $ read result -parseExpression = parse expression "JPath query"+parseExpression = parse expression "JPath query"   jPathP :: [QueryElement] -> Json -> [Json] jPathP [] v = [v]
hjpath.cabal view
@@ -1,5 +1,5 @@ Name: hjpath-Version: 3.0+Version: 3.0.1 Synopsis: XPath-like syntax for querying JSON Category: Text Description: JPath is XPath-inspired query language to query JSON data.