feat: strict unpacked JSON

This commit is contained in:
vegowotenks 2025-08-23 18:14:19 +02:00
parent 76e8cea454
commit 58b1bbb021

View file

@ -33,11 +33,11 @@ import Data.Array.Arbitrary (ArbitraryArray(getArbitraryArray))
data Value data Value
= Null = Null
| String Text | String {-# UNPACK #-} !Text
| Boolean Bool | Boolean {-# UNPACK #-} !Bool
| Number Rational | Number {-# UNPACK #-} !Rational
| Array (Array Natural Value) | Array {-# UNPACK #-} !(Array Natural Value)
| Object (Map Text Value) | Object {-# UNPACK #-} !(Map Text Value)
deriving (Show, Generic, Eq, Ord) deriving (Show, Generic, Eq, Ord)
deriving PrettySerialize via Generically Value deriving PrettySerialize via Generically Value