json-ast 0.2 → 0.3
raw patch · 2 files changed
+11/−8 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
- JSONAST: Array :: !(Vector JSON) -> JSON
- JSONAST: Bool :: !Bool -> JSON
- JSONAST: Null :: JSON
- JSONAST: Number :: !Scientific -> JSON
- JSONAST: Object :: !(HashMap Text JSON) -> JSON
- JSONAST: String :: !Text -> JSON
+ JSONAST: JSON_Array :: !(Vector JSON) -> JSON
+ JSONAST: JSON_Bool :: !Bool -> JSON
+ JSONAST: JSON_Null :: JSON
+ JSONAST: JSON_Number :: !Scientific -> JSON
+ JSONAST: JSON_Object :: !(HashMap Text JSON) -> JSON
+ JSONAST: JSON_String :: !Text -> JSON
Files
- json-ast.cabal +1/−1
- library/JSONAST.hs +10/−7
json-ast.cabal view
@@ -1,7 +1,7 @@ name: json-ast version:- 0.2+ 0.3 synopsis: Universal JSON AST datastructure description:
library/JSONAST.hs view
@@ -1,3 +1,6 @@+-- |+-- This module contains no namespace conflicts with Prelude,+-- so it can be imported unqualified. module JSONAST where import Prelude@@ -13,13 +16,13 @@ -- -- Note that this datastructure is identical to \"aeson\" Value. -- Until \"aeson\" implements the dependency on \"json-ast\",--- you can use "Unsafe.Coerce.unsafeCoerce" to work with it,+-- you can use 'Unsafe.Coerce.unsafeCoerce' to work with it, -- thus sidestepping the redundant conversions. data JSON =- Object !(HashMap Text JSON) |- Array !(Vector JSON) |- String !Text |- Number !Scientific |- Bool !Bool |- Null+ JSON_Object !(HashMap Text JSON) |+ JSON_Array !(Vector JSON) |+ JSON_String !Text |+ JSON_Number !Scientific |+ JSON_Bool !Bool |+ JSON_Null deriving (Eq, Read, Show, Typeable, Data)