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