Commits

basvandijk committed 795bdb6

Strict Value fields
This improves the running time of the AesonParse benchmarks.
I don't think there's a use-case for lazy fields.
Fixes #37

  • Participants
  • Parent commits a287d10

Comments (0)

Files changed (1)

File Data/Aeson/Types/Internal.hs

 type Array = Vector Value
 
 -- | A JSON value represented as a Haskell value.
-data Value = Object Object
-           | Array Array
-           | String Text
-           | Number Number
+data Value = Object !Object
+           | Array !Array
+           | String !Text
+           | Number !Number
            | Bool !Bool
            | Null
              deriving (Eq, Show, Typeable, Data)