Skip to content

Commit

Permalink
Strict Value fields
Browse files Browse the repository at this point in the history
This improves the running time of the AesonParse benchmarks.
I don't think there's a use-case for lazy fields.
Fixes #37
  • Loading branch information
basvandijk committed Nov 16, 2011
1 parent 0cf1f18 commit dab1302
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Data/Aeson/Types/Internal.hs
Expand Up @@ -157,10 +157,10 @@ type Object = Map Text Value
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)
Expand Down

0 comments on commit dab1302

Please sign in to comment.