feat: strict unpacked JSON
This commit is contained in:
parent
76e8cea454
commit
58b1bbb021
1 changed files with 5 additions and 5 deletions
|
@ -33,11 +33,11 @@ import Data.Array.Arbitrary (ArbitraryArray(getArbitraryArray))
|
|||
|
||||
data Value
|
||||
= Null
|
||||
| String Text
|
||||
| Boolean Bool
|
||||
| Number Rational
|
||||
| Array (Array Natural Value)
|
||||
| Object (Map Text Value)
|
||||
| String {-# UNPACK #-} !Text
|
||||
| Boolean {-# UNPACK #-} !Bool
|
||||
| Number {-# UNPACK #-} !Rational
|
||||
| Array {-# UNPACK #-} !(Array Natural Value)
|
||||
| Object {-# UNPACK #-} !(Map Text Value)
|
||||
deriving (Show, Generic, Eq, Ord)
|
||||
deriving PrettySerialize via Generically Value
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue