feat: strict SerializerState
This commit is contained in:
parent
5e91f4b67e
commit
b90e2f115b
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue