packages feed

json-ast 0.1 → 0.2

raw patch · 3 files changed

+28/−28 lines, 3 filesdep ~basePVP ok

version bump matches the API change (PVP)

Dependency ranges changed: base

API changes (from Hackage documentation)

- JSON.AST: Array :: !(Vector JSON) -> JSON
- JSON.AST: Bool :: !Bool -> JSON
- JSON.AST: Null :: JSON
- JSON.AST: Number :: !Scientific -> JSON
- JSON.AST: Object :: !(HashMap Text JSON) -> JSON
- JSON.AST: String :: !Text -> JSON
- JSON.AST: data JSON
- JSON.AST: instance Data.Data.Data JSON.AST.JSON
- JSON.AST: instance GHC.Classes.Eq JSON.AST.JSON
- JSON.AST: instance GHC.Read.Read JSON.AST.JSON
- JSON.AST: instance GHC.Show.Show JSON.AST.JSON
+ 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: data JSON
+ JSONAST: instance Data.Data.Data JSONAST.JSON
+ JSONAST: instance GHC.Classes.Eq JSONAST.JSON
+ JSONAST: instance GHC.Read.Read JSONAST.JSON
+ JSONAST: instance GHC.Show.Show JSONAST.JSON

Files

json-ast.cabal view
@@ -1,7 +1,7 @@ name:   json-ast version:-  0.1+  0.2 synopsis:   Universal JSON AST datastructure description:@@ -41,7 +41,7 @@     Haskell2010   other-modules:   exposed-modules:-    JSON.AST+    JSONAST   build-depends:     -- data:     vector >= 0.10 && < 0.12,@@ -49,4 +49,4 @@     scientific >= 0.3 && < 0.4,     unordered-containers >= 0.2 && < 0.3,     -- general:-    base >= 4.6 && < 4.9+    base >= 4.6 && < 5
− library/JSON/AST.hs
@@ -1,25 +0,0 @@-module JSON.AST where--import Prelude-import Data.Data (Data, Typeable)-import Data.HashMap.Strict (HashMap)-import Data.Vector (Vector)-import Data.Text (Text)-import Data.Scientific (Scientific)----- |--- A JSON value AST.--- --- 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,--- thus sidestepping the redundant conversions.-data JSON =-  Object !(HashMap Text JSON) |-  Array !(Vector JSON) |-  String !Text |-  Number !Scientific |-  Bool !Bool |-  Null-  deriving (Eq, Read, Show, Typeable, Data)
+ library/JSONAST.hs view
@@ -0,0 +1,25 @@+module JSONAST where++import Prelude+import Data.Data (Data, Typeable)+import Data.HashMap.Strict (HashMap)+import Data.Vector (Vector)+import Data.Text (Text)+import Data.Scientific (Scientific)+++-- |+-- A JSON value AST.+-- +-- 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,+-- thus sidestepping the redundant conversions.+data JSON =+  Object !(HashMap Text JSON) |+  Array !(Vector JSON) |+  String !Text |+  Number !Scientific |+  Bool !Bool |+  Null+  deriving (Eq, Read, Show, Typeable, Data)