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)
|
deriving stock (Functor)
|
||||||
|
|
||||||
data SerializerState = SerializerState
|
data SerializerState = SerializerState
|
||||||
{ builder :: Builder
|
{ builder :: !Builder
|
||||||
, indentation :: Indentation
|
, indentation :: !Indentation
|
||||||
, increaseIndentation :: Indentation -> Indentation
|
, increaseIndentation :: !(Indentation -> Indentation)
|
||||||
, currentFieldIndex :: Maybe Word
|
, currentFieldIndex :: !(Maybe Word)
|
||||||
}
|
}
|
||||||
|
|
||||||
instance Applicative Serializer where
|
instance Applicative Serializer where
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue