packages feed

json 0.7 → 0.8

raw patch · 3 files changed

+11/−3 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

- Text.JSON.Types: instance Typeable1 JSObject
+ Text.JSON.String: instance Applicative GetJSON
+ Text.JSON.Types: instance Typeable JSObject
- Text.JSON.Generic: class Typeable a => Data a
+ Text.JSON.Generic: class Typeable * a => Data a
- Text.JSON.Generic: class Typeable a
+ Text.JSON.Generic: class Typeable (a :: k)

Files

CHANGES view
@@ -1,3 +1,6 @@+Version 0.8+  * Add `Applicative` instance for `GetJSON`+ Version 0.4.4: released 2009-01-17; changes from 0.4.2    * Fixes handling of unterminated strings.
Text/JSON/String.hs view
@@ -47,7 +47,8 @@                         JSString, toJSString, fromJSString,                         JSObject, toJSObject, fromJSObject) -import Control.Monad (liftM)+import Control.Monad (liftM, ap)+import qualified Control.Applicative as A import Data.Char (isSpace, isDigit, digitToInt) import Data.Ratio (numerator, denominator, (%)) import Numeric (readHex, readDec, showHex)@@ -59,6 +60,10 @@ newtype GetJSON a = GetJSON { un :: String -> Either String (a,String) }  instance Functor GetJSON where fmap = liftM+instance A.Applicative GetJSON where+  pure  = return+  (<*>) = ap+ instance Monad GetJSON where   return x        = GetJSON (\s -> Right (x,s))   fail x          = GetJSON (\_ -> Left x)
json.cabal view
@@ -1,5 +1,5 @@ name:               json-version:            0.7+version:            0.8 synopsis:           Support for serialising Haskell to and from JSON description:     JSON (JavaScript Object Notation) is a lightweight data-interchange@@ -14,7 +14,7 @@ license:            BSD3 license-file:       LICENSE author:             Galois Inc.-maintainer:         Sigbjorn Finne <sof@galois.com>+maintainer:         Iavor S. Diatchki (iavor.diatchki@gmail.com) Copyright:          (c) 2007-2009 Galois Inc. cabal-version:      >= 1.2.0 build-type: Simple