packages feed

JSON-Combinator 0.1.1 → 0.1.2

raw patch · 3 files changed

+9/−3 lines, 3 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

+ Text.JSON.JSONLike: instance Functor JSObject
- Text.JSON.Combinator: readJSONFile :: (JSONParse j a e, InteractFile a) => String -> IO (Either e j)
+ Text.JSON.Combinator: readJSONFile :: (JSONParse j a e, InteractFile a) => FilePath -> IO (Either e j)

Files

JSON-Combinator.cabal view
@@ -1,11 +1,11 @@ Name:               JSON-Combinator-Version:            0.1.1+Version:            0.1.2 License:            BSD3 License-File:       LICENSE Author:             Tony Morris <ʇǝu˙sıɹɹoɯʇ@ןןǝʞsɐɥ> Maintainer:         Tony Morris Synopsis:           A combinator library on top of a generalised JSON type-Category:           Combinator+Category:           Combinators Description:   A combinator library on top of a generalised JSON type. The highest-level module is   @Text.JSON.Combinator@ and it is expected that no other module need to be explicitly imported.
Text/JSON/Combinator.hs view
@@ -677,7 +677,7 @@ -- | Parses a JSON file into a possible JSON object. readJSONFile ::   (JSONParse j a e, InteractFile a) =>-  String+  FilePath   -> IO (Either e j) readJSONFile f =   parseJSON f `fmap` readFile' f
Text/JSON/JSONLike.hs view
@@ -106,3 +106,9 @@     J.JSArray   jobject =     J.JSObject++-- orphan instance+instance Functor J.JSObject where+  fmap f =+    J.toJSObject . fmap (fmap f) . J.fromJSObject+