feat: strict SerializerState

This commit is contained in:
vegowotenks 2025-08-23 18:39:27 +02:00
parent 5e91f4b67e
commit b90e2f115b

View file

@ -52,10 +52,10 @@ newtype Serializer a = Serializer (SerializerState -> (SerializerState, a))
deriving stock (Functor)
data SerializerState = SerializerState
{ builder :: Builder
, indentation :: Indentation
, increaseIndentation :: Indentation -> Indentation
, currentFieldIndex :: Maybe Word
{ builder :: !Builder
, indentation :: !Indentation
, increaseIndentation :: !(Indentation -> Indentation)
, currentFieldIndex :: !(Maybe Word)
}
instance Applicative Serializer where