packages feed

hjson 1.1.1 → 1.1.3

raw patch · 2 files changed

+6/−3 lines, 2 filesdep ~parsec

Dependency ranges changed: parsec

Files

Text/HJson.hs view
@@ -74,6 +74,9 @@ 	toJson = JObject . Map.mapWithKey (\_ v -> (toJson v)) 	fromJson (JObject m) = Just $ Map.fromList $ catMaybes $ map (\(k, v) -> maybe (Nothing) (\jv -> Just (k, jv)) (fromJson v)) $ Map.toList m 	fromJson _ = Nothing+instance (Jsonable a) => [a] where+	toJson = undefined+	fromJson = undefined  -- private functions @@ -174,7 +177,7 @@ 		Just ('-', powr) -> JNumber (upV % (downV * 10 ^ powr)) 		Just (_, powr) -> JNumber ((upV * 10 ^ powr) % downV) -boolP = (JBool True <$ string "true") <|> (JBool True <$ string "false")+boolP = (JBool True <$ string "true") <|> (JBool False <$ string "false")  nullP = JNull <$ string "null" 
hjson.cabal view
@@ -1,5 +1,5 @@ Name: hjson-Version: 1.1.1+Version: 1.1.3 Synopsis: JSON parsing library Category: Text Description: JSON parsing library with simple and sane API@@ -16,4 +16,4 @@  library  Exposed-Modules: Text.HJson- Build-Depends: base >= 4 && < 5, parsec >= 2.1, containers, safe+ Build-Depends: base >= 4 && < 5, parsec >= 3.0.0, containers, safe